09 2017 档案

摘要:1 2 3 4 5: 模块 作者:武沛齐 出处:http://www.cnblogs.com/wupeiqi/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。 http://www.cnblogs.com/wupeiqi/articles/5 阅读全文
posted @ 2017-09-30 06:05 明宣 阅读(135) 评论(0) 推荐(0)
摘要:一、sys 二、os 三、hashlib 四、random 五、re 六、pickle,json 七、configparser 八、XML 九、requests 十、logging alex 十一、系统命令 十二、shutil 十三、paramiko 十四、time 模块,用一砣代码实现了某个功能的 阅读全文
posted @ 2017-09-30 03:08 明宣 阅读(117) 评论(0) 推荐(0)
摘要:sdfdf 阅读全文
posted @ 2017-09-30 03:03 明宣 阅读(104) 评论(0) 推荐(0)
摘要:>>> s={'s','s','t'} >>> s {'s', 't'} >>> type(s) >>> >>> s=set([1,2,3,4,5,6,7]) >>> s {1, >>> dir(set()) ['__and__', '__class__', '__contains__', '__delattr__', ' 阅读全文
posted @ 2017-09-17 16:40 明宣 阅读(884) 评论(0) 推荐(0)
摘要:>>> type({}) >>> a={}>>> a{}>>> a[5]=6>>> a{5: 6}>>> >>> dir(dict)['__class__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', & 阅读全文
posted @ 2017-09-14 01:04 明宣 阅读(328) 评论(0) 推荐(0)
摘要:>>> str='absfgsdf' >>> type(str) >>> dir(str) ['__add__', '__class__', '__contains__'包含, '__delattr__', '__dir__', '__doc__', '__eq__'相等, '__format__', '__ge__', '__getattribute__'反射用到, 阅读全文
posted @ 2017-09-13 22:38 明宣 阅读(206) 评论(0) 推荐(0)
摘要:文档: def format(self, *args, **kwargs): # known special case of str.format """ S.format(*args, **kwargs) -> str Return a formatted version of S, using 阅读全文
posted @ 2017-09-13 05:28 明宣 阅读(150) 评论(0) 推荐(0)
摘要:>>>list=['a',1,'1'] >>> dir(list) ['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__' 阅读全文
posted @ 2017-09-09 00:00 明宣 阅读(152) 评论(0) 推荐(0)