随笔分类 -  使用总结

摘要:import traceback 阅读全文
posted @ 2019-03-27 11:34 auxiaoliu 阅读(465) 评论(0) 推荐(0)
摘要:pip3 install pipreqs 导出项目的依赖关系 首先cd 到项目目录下, 然后运行pipreqs ./ 就可以生成依赖文件 requirements.txt文件. 如果想要同一安装依赖文件,可以用如下命令 pip install -r requirements.txt 这种使用建议在虚 阅读全文
posted @ 2019-03-27 10:00 auxiaoliu 阅读(369) 评论(0) 推荐(0)
摘要:读excel示例: 写excel示例: 阅读全文
posted @ 2019-03-27 09:52 auxiaoliu 阅读(181) 评论(0) 推荐(0)
摘要:执行shell命令 1.supprocess 2.commands 压缩和解压文件 查看目录下所有文件 根据pid杀死进程 阅读全文
posted @ 2019-03-25 11:31 auxiaoliu 阅读(541) 评论(0) 推荐(0)
摘要:面向对象 基础:三大特性 1.继承 2.抽象 python 抽象示例: import abc from abc import * classSClass(metaclass = abc.ABCMeta): @abstractmethod def my_print(self): pass classC 阅读全文
posted @ 2019-03-25 11:26 auxiaoliu 阅读(224) 评论(0) 推荐(0)