摘要:
1 import os 2 #死循环用法 3 4 while True: 5 control = input("请输入计算机操作指令(Windows)") 6 if(control =='控制面板'): 7 os.system("control") 8 elif(control == '电脑配置'): 9 os.syst... 阅读全文
摘要:
运行结果: 3位数中水仙花数有 1533位数中水仙花数有 3703位数中水仙花数有 3713位数中水仙花数有 407计算3位数中的水仙花数花费时间 0 秒4位数中四叶玫瑰数有 16344位数中四叶玫瑰数有 82084位数中四叶玫瑰数有 9474五位的五角星数共有 54748五位的五角星数共有 927 阅读全文
摘要:
1 #回文判断 2 a = eval(input("请输入一个数判断是否是回文")) 3 4 # if a =100: 5 if (a // 100 > 0) and (a // 100 < 10) : 6 gewei = a % 10 7 shiwei = a // 10 % 10 8 baiwei = a // 100 9 print(ge... 阅读全文