随笔分类 - Python
摘要:一、补零 if __name__ == '__main__': str1 = '130000' for a in range(100): print(str1 + str(a).zfill(5)) 二、补空格 2.1、rjust:右对齐 if __name__ == '__main__': str_
阅读全文
摘要:一、YAML配置文件 修改前 chrome_path: chromedriver.exe jobs: - A1 uestcedu_url: https://www.baidu.com 修改后 chrome_path: chromedriver.exe jobs: - A1 - A2(New) ues
阅读全文
摘要:import json str = '{"status":"500","data":null,"time":1595921796,"info":"测试测试"}' # 字符串转换为JSON格式 str_json = json.loads(str) # 格式化输出JSON # sort_keys:是否按
阅读全文
摘要:封装概述: 把具有一定功能的代码封装起来(下次再实现此功能时就不用再写了,直接调用即可) 把加减乘除四则运算封装: calc_util\calc.py class CalcClass: def jia(self, a, b): return a + b def jian(self, a, b): r
阅读全文
摘要:一、技能1、python基础知识: 封装(【Python】+系列教程(1、封装))继承多态多线程装饰器OOP编程思维 2、web框架: DjangoFlask 3、数据分析工具 PandasNumpyScipyMatplotlib 4、Python操作数据库 5、自动化selenium 6、机器学习
阅读全文
摘要:https://www.cnblogs.com/ken-yu/p/12531168.html
阅读全文
摘要:1、下载PyCharm(IDE) pycharm2020.1.3 官网:https://www.jetbrains.com/pycharm/download/#section=windows 激活:https://www.cnblogs.com/zhaobowen/p/13360775.html 下
阅读全文
摘要:一、可视化布局工具: 蚂蚁开源工具:https://ant.design/index-cn 可视化布局工具:https://www.bootcss.com/p/layoutit/ 二、语雀记录: https://www.yuque.com/zhangguoxiang-tzwxl/io4yhg/wxm
阅读全文
摘要:替换镜像源即可https://www.jianshu.com/p/4002a8714ab3 pip install pytest -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com 安装包下载(清华镜像站点):https:
阅读全文
摘要:1、可以用python干什么:https://realpython.com/what-can-i-do-with-python/#what-others-do-with-python 2、廖雪峰:https://www.liaoxuefeng.com/wiki/1016959663602400 3、
阅读全文
摘要:一、基础信息 1.1、python的各个图形界面库的对比:http://baijiahao.baidu.com/s?id=1600180338541468917&wfr=spider&for=pc 1.2、pyqt5中文手册:http://code.py40.com/pyqt5/ 二、环境搭建 2.
阅读全文
摘要:官方文档:https://itchat.readthedocs.io/zh/latest/ 参考文档:https://www.cnblogs.com/wang-li/p/9744502.html
阅读全文
摘要:参考 %Y-%m-%d %H:%M:%S.%f 1、代码: 1 def date_operation(): 2 # step1:获取当前时间戳(数字形式) 3 now_time = time.time() 4 5 # step2:将数字形式的时间戳转换为指定的时间格式 6 tup_time = ti
阅读全文
摘要:参考文章:https://www.cnblogs.com/lizm166/p/9634306.html 破解参数(as ,cp,_cp_signature):https://blog.csdn.net/weixin_39416561/article/details/82111455 一、爬取今日头条
阅读全文
摘要:https://blog.csdn.net/weixin_42419002/article/details/89161670 1、ctrl+b:进入当前光标所在的 类 / 方法 / 变量上次出现的位置 2、ctrl+alt+左方向键:回到上一个跳转位置
阅读全文
摘要:demjson模块 https://blog.csdn.net/weixin_30558305/article/details/95452818 1、需解析的数组json格式的字符串 备注:这是一个string类型的字符串 即为第二步中的“result”变量 1 [{symbol:"sh600000
阅读全文
摘要:class TestDate1: a = 1 # "__init__"为类的构造函数 def __init__(self): self.a = 666 pass def a_1(self): print("a_1") self.a_2() def a_2(self): print(self.a) p
阅读全文
摘要:https://www.cnblogs.com/baxianhua/p/9934878.html import datetime class TestDate: def test_date(self): y, m, d = self.split("-") print("{}年{}月{}日".form
阅读全文
摘要:is_holiday方法:若是交易日 返回false;若不是交易日 返回true https://www.zhihu.com/question/35835021 输出: 离2019-10-07最近的一个历史交易日为:2019-09-30离2019-10-08最近的一个历史交易日为:2019-10-0
阅读全文
摘要:https://www.cnblogs.com/a389678070/p/9559360.html
阅读全文