2018年9月19日

关于打开文件写入

摘要: import os def print_directory_contents(sPath): # path 路径,--child产物 for sChild in os.listdir(sPath): sChildPath = os.path.join(sPath, sChild) if os.pat 阅读全文

posted @ 2018-09-19 20:57 市外桃源 阅读(134) 评论(0) 推荐(0)

python 多态的理解

摘要: 1 class Human(object): # 父类 :创建“人”类 2 3 def __init__(self): 4 5 print('Ill pound the code and buy you a bag') # 我会敲打码,给你买包包 6 7 class Man(Human): # 1) 阅读全文

posted @ 2018-09-19 20:45 市外桃源 阅读(950) 评论(0) 推荐(0)

导航