![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python3
小麻小芝麻
这个作者很懒,什么都没留下…
展开
-
python list
1 目录 append clear copy count extend index insert pop remove reverse sort 2 说明 1. append def append(self, p_object): # real signature unknown; restored from __doc__ """ L.append(obje...原创 2018-07-09 20:01:36 · 179 阅读 · 0 评论 -
python tuple
1 目录 count index 2 说明 count def count(self, value): # real signature unknown; restored from __doc__ """ T.count(value) -> integer -- return number of occurrences of value """ ret...原创 2018-07-09 20:24:20 · 206 阅读 · 0 评论 -
python dict
1 目录 clear copy fromkeys get items keys pop popitem setdefault update values 2 说明 1.clear def clear(self): # real signature unknown; restored from __doc__ """ D.clear() -> None...原创 2018-07-09 21:04:24 · 203 阅读 · 0 评论 -
python set
1 目录 add clear copy difference difference_update discard intersection intersection_update isdisjoint issubset issuperset pop remove symmetric_difference symmetric_difference_update union update ...原创 2018-07-09 21:16:41 · 173 阅读 · 0 评论 -
从python源码格式化输出自己想要的内容:方法的说明
获取源码中方法说明的那部分内容,转换为markdown中的代码块 import re ''' 从python源码格式化输出自己想要的内容:方法的说明 ''' # 查看空行是什么字符组成 line_list = [] with open('dict_dir.txt') as fdict: for line in fdict.readlines(): line_list.ap...原创 2018-07-09 21:24:37 · 358 阅读 · 0 评论