用户:
好动的流星猫57查看:1 回复:1 评论:1 创建时间:2020-08-20T15:46:54
【作品展示】

【作品介绍】
模拟了经典的pcdos
【作品源代码】
print('IBM©1980 PCDOS 8.9')
win = [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99]
abc = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'z', 'aa', 'AA', 'bb', 'BB', 'zz', 'ZZ', 'abc', 'ABC', 'wolf', 'cat']
while True:
Input = input('A:/')
if (Input == 'dir'):
print('ABC.TXT')
print('the computer.EXE')
print('clipenstein.EXE')
print('windows 1.0.bcm')
print('VMware.EXE')
print('codemao.EXE')
print('internet explorer.EXE')
print('TV.docx')
print('car.docx')
elif (Input == 'ver'):
print('PCDOS 8.9')
elif (Input == 'exit'):
break
elif (Input == 'judge'):
print('a.判断数字')
print('b.判断字符串')
place_2 = input()
start_1 = input('请输入选项:')
if (place_2 == 'a'):
a = int(input('请输入数字:'))
if (a in win):
print('yes')
elif (place_2 == 'b'):
b = str(input('请输入字符串:'))
if (b in abc):
print('yes')
else:
pass
elif (Input == 'result judgement'):
c = int(input('请输入你的成绩:'))
if (c > 60):
print('及格')
elif (c < 60):
print('不及格')
else:
pass
elif (Input == 'Eleua'):
a = int(input('请输入你的电脑的电量:'))
if (a > 75):
print('无需充电')
elif (a < 75):
print('得充电啦!')
else:
pass
elif (Input == 'reut jueme'):
Input_1 = int(input('请输入你的语文成绩:'))
Input_2 = int(input('请输入你的数学成绩:'))
Input_3 = int(input('请输入你的英语成绩:'))
Input_4 = int(input('请输入你的体育成绩:'))
if (Input_1 > 90 and Input_2 > 90 and Input_3 > 90 and Input_4 > 90):
print('三好学生')
else:
print('不符合条件。')
else:
print('No command in PCDOS.')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn