猫史档案馆


【Python作品分享】虚拟试卷【作品秀】

用户:羞涩的达达蟹lQOv羞涩的达达蟹lQOv查看:0 回复:0 评论:0 创建时间:2023-07-29T20:43:10


【作品展示】

center_image

 

【作品介绍】

来测一测你的脑力吧(照片是随便找的)

 

【作品源代码】

a=6
b=3
print('6*3')
c=int(input('答案'))
if c == 18:
    print('对')
    d=int(20)
else:
    print('错')
    d=int(0)

a=7
b=11
print('7*11')
c =int(input('答案'))
if c == 77:
    print('对')
    d = int(d+20)
else:
    print('错')
    d = int(d+0)

a=5
b=1252
print('5*1252')
c =int(input('答案'))
if c == 6260:
    print('对')
    d = int(d+20)
else:
    print('错')
    d = int(d+0) 

a=14
b=14
print('14*14')
c =int(input('答案'))
if c == 196:
    print('对')
    d = int(d+20)
else:
    print('错')
    d = int(d+0)

a=999
b=999
print('999*999')
c =int(input('答案'))
if c == 998001:
    print('对')
    d = int(d+20)
else:
    print('错')
    d = int(d+0)

if d >= 60:
    print('恭喜你,及格了,')
else:
    print('很遗憾,没有及格……')
print(d)
print('这是你的分数')

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页