摘要: import os.pathwhile True: rootdir=input('请输入遍历文件夹的绝对路径:(q退出)') if rootdir=='q': break if not(os.path.exists(rootdir)): print("输入的路径不存在,请重新输入!!") conti 阅读全文
posted @ 2019-04-24 23:19 18软件工程五班陈星星 阅读(259) 评论(0) 推荐(0) 编辑
摘要: import randomx = random.randint(0,99)while(True): num = input("please input a number\n") if(num.isdigit): num = int(num) if(x == num) : print("congrat 阅读全文
posted @ 2019-04-24 16:57 18软件工程五班陈星星 阅读(1752) 评论(0) 推荐(0) 编辑