10 2019 档案
FTP各功能示例
摘要:1 """ 2 # 第一个知识点 \r 3 """ 4 import time 5 print('\r80%',end='') 6 time.sleep(2) 7 print('\r90%',end='') 8 """ 9 # 第二个知识点 %% 10 """ 11 tpl = "进度条目前是%s% 阅读全文
posted @ 2019-10-21 19:23 始终不够啊 阅读(326) 评论(0) 推荐(0)
python2 与 python3的区别
摘要:1.编码&字符串 字符串: py2: unicode v = u"root" 本质上用unicode存储(万国码) (str/bytes) v = "root" 本质用字节存储 py3: str v = "root" 本质上用unicode存储(万国码) bytes v = b"root" 本质上用 阅读全文
posted @ 2019-10-20 18:37 始终不够啊 阅读(148) 评论(0) 推荐(0)
易错点
摘要:1.继承 # 按照类的继承顺序,找下一个. class Foo(object): def f1(self): super().f1() print('3个功能') class Bar(object): def f1(self): print('6个功能') class Info(Foo,Bar): 阅读全文
posted @ 2019-10-16 20:31 始终不够啊 阅读(272) 评论(0) 推荐(0)