|
发表于 2023-12-20 16:50:04
|
显示全部楼层
请回复您的答案^_^
>>>>> 问答题 <<<<<
第 0 题的答案是:命令反馈和程序反馈
第 1 题的答案是:temp int guess都是,input不确定
第 2 题的答案是:不一样,后者不是bif
第 3 题的答案是:158
第 4 题的答案是:没发现
第 5 题的答案是:=是赋值而不是程序语言
>>>>> 动动手 <<<<<
请将第 0 题的代码写在下方:
请将第 1 题的代码写在下方:
- """Aright, Let's optimize this code. Just for homework? """
- temp = input ("Hey, GUY, How high mark you score on the exam last week: ")
- guess = int(temp)
- if 0< guess < 60:
- print("I am sorry to hear that.")
- print("Cheer up! I believe you can do better next time.")
- if 60<= guess <80:
- print("Good Pass, bor.")
- if guess >=80:
- print ("Aright, aright. I am like a fool compared to you.")
- else:
- print ("Down!")
复制代码 |
|