|
发表于 2019-10-29 11:48:21
|
显示全部楼层
请回复您的答案^_^
>>>>> 问答题 <<<<<
第 0 题的答案是:编辑器模式,return不可直接打印,必须由print来执行;交互模式,最重要的是无需print,直接输入函数名、数组名就可打印,交互模式不可用于函数的交互。
第 1 题的答案是:int()
第 2 题的答案是:不一样,因为python是大小写敏感的
第 3 题的答案是:153个 len(dir(__builtins__))
第 4 题的答案是:快速选择补全功能
第 5 题的答案是:=是赋值,==才是比较,应改为guess == 8:
>>>>> 动动手 <<<<<
请将第 0 题的代码写在下方:
>>> 365 * 24 * 60 * 60
31536000
请将第 1 题的代码写在下方:
temp = input("please enter this math test scores: ")
scores = int(temp)
if scores == 100:
print("good, you are closer to the goddess ^_^")
else:
print("boy, you have to work harder if you want happiness!") |
|