3.1.2 Python汇总—语言特性
## reduce函数
https://docs.python.org/3/library/functools.html#functools.reduce
## 鸭子类型
https://www.cnblogs.com/ssgeek/p/14720426.html
## if __name__ == '__main__' 如何正确理解?
参考https://www.zhihu.com/question/49136398
https://blog.csdn.net/heqiang525/article/details/89879056
## @的用法
https://blog.csdn.net/yjreset/article/details/79329979
## 装饰器
https://blog.csdn.net/qq_38784098/article/details/120873382
## 带有参数的装饰器
https://blog.csdn.net/weixin_44799217/article/details/118695357
## 字符串前面加u,r,b的含义
参考https://www.cnblogs.com/liangmingshen/p/9274021.html
## format()函数
https://blog.csdn.net/qq_44614026/article/details/104321169
## locals()函数
https://blog.csdn.net/weixin_45722061/article/details/102604730
## Pickle和Json模块
参考https://zhuanlan.zhihu.com/p/271674011
## 生成与已知列表等长度+元素为0的列表(list推导式)
参考https://www.cnblogs.com/xingchuxin/p/10440890.html
## append() 和 extend()
参考https://blog.csdn.net/qq_41800366/article/details/86367465
## 引用(import)文件夹下的py文件的方法
参考https://blog.csdn.net/fengshanghere/article/details/82968052
## 报错:'dict' object has no attribute 'iteritems'
参考https://blog.csdn.net/hc1017/article/details/79977519
## 编写Switch语句
参考https://blog.csdn.net/rocky_03/article/details/70768511
## 集合操作&、|、-、^、与and、or
参考https://blog.csdn.net/weixin_44675377/article/details/89420690
## 报错:TypeError: '>' not supported between instances of 'str' and 'int'(需要进行类型转换)
参考https://www.cnblogs.com/xisheng/p/7531862.html
## 可迭代对象,迭代器,生成器的区别
参考https://blog.csdn.net/liangjisheng/article/details/79776008
## 生成器详解
https://zhuanlan.zhihu.com/p/462936372
## 星号作用:解包&打散
参考https://www.cnblogs.com/bigtreei/p/8343081.html
## Itertools.takewhile()
参考https://vimsky.com/examples/usage/python-itertools-takewhile.html
## 时间装饰器
https://zhuanlan.zhihu.com/p/424702722
## 时间戳、时间对象、时间字符串转换
https://blog.csdn.net/weixin_45750972/article/details/122710726
https://www.coder4.com/archives/2239
https://blog.csdn.net/weixin_45890771/article/details/121729078
## strptime() mktime()
https://www.runoob.com/python/att-time-strptime.html
https://www.runoob.com/python/att-time-mktime.html
## defaultdict()
https://www.jianshu.com/p/bbd258f99fd3
https://blog.csdn.net/jiaxinhong/article/details/108398099
https://blog.csdn.net/weixin_35691102/article/details/114910656
## import
https://blog.csdn.net/qq_38642635/article/details/119774681
https://zhuanlan.zhihu.com/p/156774410
https://blog.csdn.net/yzy_1996/article/details/119482223
## import pycharm下划线
https://blog.csdn.net/weixin_40006040/article/details/104978575
## dir()
https://www.runoob.com/python/python-func-dir.html
## importlib.import_module()
https://blog.csdn.net/edward_zcl/article/details/88809212
https://www.jianshu.com/p/85d5dd9d1111
## UnicodeEncodeError: 'ascii' codec can't encode characters in position
https://blog.csdn.net/IAlexanderI/article/details/82980281
## setattr()、getattr()、hasattr()
https://www.cnblogs.com/hao2018/p/11428951.html
https://zhuanlan.zhihu.com/p/489076191
https://www.runoob.com/python/python-func-setattr.html
https://www.runoob.com/python/python-func-getattr.html
## super()
https://blog.csdn.net/wanzew/article/details/106993425
## __init__
https://www.zhihu.com/question/46973549
## __new__
https://www.jianshu.com/p/08d7956601de
## json.load()、json.loads()、json.dump()、json.dumps()区别
https://blog.csdn.net/weixin_43631296/article/details/105253434
https://blog.csdn.net/lizhixin705/article/details/82344209
https://blog.csdn.net/weixin_38842821/article/details/108359551
## JSON与字典转换
https://blog.csdn.net/weixin_54691198/article/details/124944137
## 保存list结构为json文件
https://blog.csdn.net/jizhidexiaoming/article/details/108929093
## Python执行外部命令(subprocess,call,Popen)
http://www.javashuo.com/article/p-wsxnpytk-hb.html
## sys.argv[]的用法
https://blog.csdn.net/lyb3b3b/article/details/81221396
## 处理参数getopt的使用
https://www.cnblogs.com/yuandonghua/p/10619941.html
## subprocess.CalledProcessError
https://blog.csdn.net/p1279030826/article/details/111573774
## time、datetime
https://blog.csdn.net/kobeyu652453/article/details/108894807
https://blog.csdn.net/zhangb98/article/details/124243886
https://zhuanlan.zhihu.com/p/101939095
## Object of type 'datetime' is not JSON serializable 解决方法
https://blog.csdn.net/t8116189520/article/details/88657533
## JsonResponse返回中文时显示unicode编码
https://blog.51cto.com/liangdongchang/3116505
## form-data与x-www-form-urlencoded的区别
https://blog.csdn.net/qq_45530512/article/details/124294508
## Non-ASCII character '\xe6' 错误解决方法
https://blog.csdn.net/wz22881916/article/details/78516440
## 打印异常信息两种方式
https://blog.csdn.net/a12355556/article/details/120220149
## copy.deepcopy()
https://blog.csdn.net/qq_43511299/article/details/115260534
## f”{表达式}"的用法
https://blog.csdn.net/weixin_47702737/article/details/112756957
## assert
https://blog.csdn.net/qq_37369201/article/details/109195257
## ubuntu下安装python3.7.4
https://www.cnblogs.com/yiwengg/p/14139886.html
## isinstance()
https://www.runoob.com/python/python-func-isinstance.html
## 枚举类型
https://blog.csdn.net/ProQianXiao/article/details/113481092
## collections库、Counter类
https://huang-tong-xue.blog.csdn.net/article/details/118668189
https://zhuanlan.zhihu.com/p/355601478
## 正则表达式
https://www.runoob.com/python/python-reg-expressions.html
## 正则表达式 \s+
https://blog.csdn.net/weixin_44328568/article/details/120295152
## 正则表达式 .*
https://blog.csdn.net/Xidian2850/article/details/122951593
## re.match()使用方法详解
https://blog.csdn.net/weixin_39274808/article/details/104867920
https://blog.csdn.net/znevegiveup1/article/details/117789589
## re.search()方法
参考https://blog.csdn.net/m0_37360684/article/details/84140403
## shutil模块
https://www.cnblogs.com/ltkekeli1229/p/15709414.html
## tqdm模块
https://blog.csdn.net/bitcarmanlee/article/details/120832834
## 实例方法、类方法、静态方法
http://c.biancheng.net/view/4552.html
## super().__init__()
https://blog.csdn.net/a__int__/article/details/104600972
## MessagePack
https://blog.csdn.net/weixin_43863487/article/details/125171834
## python逆序的三种方法
https://blog.csdn.net/yzl_007/article/details/121111839
## 字典按key排序
https://blog.csdn.net/qq_42886635/article/details/125741234
## 处理多个异常
https://blog.csdn.net/2201_75362610/article/details/131041649
## 报错: This call to matplotlib.use() has no effect because the backend has alreadybeen chosen
https://blog.csdn.net/qq_42006303/article/details/123881858
## logging模块
https://zhuanlan.zhihu.com/p/425678081
## 多进程报错:Can’t pickle local object
https://blog.csdn.net/qq_43331089/article/details/126227288
## %r或者{!r}的含义
https://blog.csdn.net/a19990412/article/details/80149112
posted on 2025-03-01 13:17 Hiteration 阅读(13) 评论(0) 收藏 举报
浙公网安备 33010602011771号