摘要:
a=[] with open('test5','r',encoding='utf-8') as z: while True: w=z.readline() a.append(w) if z.readline()=="": break for i in range(len(a)): print(a[i 阅读全文
摘要:
class CLASSNAME(base) ‘’‘类的帮助信息’‘’ statement class Fruit: color='green' def harvest(self,color): print('I am %s'%color) print(Fruit.color) class Apple 阅读全文