摘要:
刚写了一个小游戏,突然发现忘了return 的作用,现在记下来: def game_start(): for i in range(1,4): points=[] point=random.randrange(1,7) a+=point return a 下面有函数要调用上面的game_start( 阅读全文
摘要:
import randomimport stringa=list(string.ascii_uppercase)for i in range(1,10): a.append(str(i)) def active_code(geshu,length): for i in range(geshu): k 阅读全文
摘要:
本地E盘上有一个why文件夹,why文件夹下有3个文件夹,分别是one,two,three,这三个文件夹下面分别有自己的txt文件: import osimport os.pathrootdir="E:\why" for zhu,ci,files in os.walk(rootdir): for f 阅读全文