- 博客(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
2472
原创 树莓派上部署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
572
原创 利用phantomJS对任意网页截图
1、安装node.js(略) 2、安装npm(略) 3、安装phantomJS npm install phantomjs -g phantomjs —version // 查看下版本 npm install webpage //安装webpage包 4、如果phantomJS安装失败,不用纠结,直接下载程序包 https://bitbucket...
2020-04-13 21:05:58
287
原创 python之signal信号控制
手动终止主进程时,同时终止子进程 先看一段代码 import redis import multiprocessing from signal import signal, SIGINT, SIG_IGN, siginterrupt, SIGTERM, SIGTSTP def devide(): #分割日志 devideProcess = multiprocessing.Proc...
2020-04-13 20:54:05
570
原创 windows 子系统ubuntu16.04 无法安装php 问题
windows 子系统ubuntu16.04 无法安装php 问题 apt -y install php7.0 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct t...
2020-04-13 20:48:13
304
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅