- 博客(5)
- 收藏
- 关注
原创 设置python编码
python 指定编码通常我们看到的指定python编码的方式有# coding=utf-8或者# coding:utf-8 或者# -*- coding:utf-8 -*-从官方文档查到指定编码的规则需要满足以下正则表达式^[ \t\f]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+)所以说以上写法都正确,或者可以再加一点,改成 # I want to use coding=utf-8 也可以,这个指定编码的注释叫魔术注释(magic comment)。除此
2021-03-26 10:23:59
2336
原创 树莓派上部署frp内网工具
外网 :腾讯云主机内网:树莓派3B+(官网raspberry系统)1、frp 程序下载及配置参考https://github.com/anqinganan/frp/blob/master/README_zh.md相应文件下载如上图。服务端配置如下:vim frps.ini[common]bind_port = 7777 //该端口为与客户端通信端口运行 ./frps -c ....
2020-04-13 21:20:09
527
原创 利用phantomJS对任意网页截图
1、安装node.js(略)2、安装npm(略)3、安装phantomJSnpm install phantomjs -gphantomjs —version // 查看下版本npm install webpage //安装webpage包4、如果phantomJS安装失败,不用纠结,直接下载程序包 https://bitbucket...
2020-04-13 21:05:58
254
原创 python之signal信号控制
手动终止主进程时,同时终止子进程先看一段代码import redisimport multiprocessingfrom signal import signal, SIGINT, SIG_IGN, siginterrupt, SIGTERM, SIGTSTPdef devide(): #分割日志 devideProcess = multiprocessing.Proc...
2020-04-13 20:54:05
536
原创 windows 子系统ubuntu16.04 无法安装php 问题
windows 子系统ubuntu16.04 无法安装php 问题apt -y install php7.0Reading package lists... DoneBuilding dependency treeReading state information... DoneYou might want to run 'apt-get -f install' to correct t...
2020-04-13 20:48:13
276
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人