|
发表于 2019-8-20 21:46:21
|
显示全部楼层
请回复您的答案^_^
>>>>> 问答题 <<<<<
第 0 题的答案是:交互模式是Python运行区域 运行已经写好的代码或者可以执行的内置函数, 编辑器就是构建一个可以执行的多行代码
第 1 题的答案是:'abs', 'all', 'any', 'ascii', 'bin', 'bool', 'breakpoint', 'bytearray', 'bytes', 'callable',
'chr', 'classmethod', 'compile', 'complex', 'copyright', 'credits', 'delattr', 'dict',
'dir', 'divmod', 'enumerate', 'eval', 'exec', 'exit', 'filter', 'float', 'format', 'frozenset',
'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'isinstance', 'issubclass',
'iter', 'len', 'license', 'list', 'locals', 'map', 'max', 'memoryview', 'min', 'next', 'object', 'oct',
'open', 'ord', 'pow', 'print', 'property', 'quit', 'range', 'repr', 'reversed', 'round', 'set', 'setattr',
'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'vars', 'zip'
第 2 题的答案是:不一样
第 3 题的答案是:74
第 4 题的答案是:可以作为内置函数编写提示
第 5 题的答案是:改为 if guess ==8:,一个等号为赋值,双等号为判断
>>>>> 动动手 <<<<<
请将第 0 题的代码写在下方:
print(60*60*24*365)
请将第 1 题的代码写在下方:
temp = input("这次数学考试的成绩:")
guess = int(temp)
if guess >=60:
print("好棒,你离女神又进一步")
else:
print("小子,想要幸福,就得努力")
print("游戏结束,不玩了")
|
|