- 博客(4)
- 问答 (1)
- 收藏
- 关注
原创 python3代码兼容python2
python3代码兼容python2的方式1.使用future特性Python的每个新版本都会增加一些新的功能,或者对原来的功能作一些改动。有些改动是不兼容旧版本的,也就是在当前版本运行正常的代码,到下一个版本运行就可能不正常了。Python提供了__future__模块,把下一个新版本的特性导入到当前版本,于是我们就可以在当前版本中测试一些新版本的特性。例如在python2.7中使用py...
2018-12-27 17:01:09
7383
原创 docker开机启动nginx,mysql等服务的方式
docker中使用supervisor配置nginx,mysql等进程自动开机启动文章目录docker中使用supervisor配置nginx,mysql等进程自动开机启动1.问题描述2.解决思路3.具体解决方案(1)supervisor中配置nginx,mysql等自动重启(2)docker运行容器CMD命令启动supervisor(3)docker exec命令启动supervisord服务...
2018-12-26 20:27:55
9775
2
原创 python3使用configparser模块来处理ini配置文件
python3使用configparser模块来处理ini配置文件import configparser #python3中为configparserimport ConfigParser #python中为ConfigParser1.基本的读取配置文件-read(filename) 直接读取ini文件内容-sections() 得到所有的section,并以列表的形式返回-opt...
2018-12-14 23:04:23
549
原创 Hemorrhage detection in fundus image based on 2D Gaussian fitting and human visual characteristics
Hemorrhage detection in fundus image based on 2D Gaussian fitting and human visual characteristics (基于二维高斯拟合与人类视觉特征的眼底图像出血检测)作者: Jun Wu, Shihao Zhang, Zhitao Xiao, Fang Zhang, Lei Geng, Shiliang ...
2018-12-07 22:22:09
545
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人