|
发表于 2020-4-29 10:03:41
|
显示全部楼层
请回复您的答案^_^
>>>>> 问答题 <<<<<
第 0 题的答案是:交互模式是写一行执行一行,编辑器模式是整个文本按顺序执行。
第 1 题的答案是:str
第 2 题的答案是:不一样,python对大小写敏感。
第 3 题的答案是: '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'
第 4 题的答案是:提示和补全所需要库
第 5 题的答案是:if guess = 8:是将8赋值给guess而不是等于8.
>>>>> 动动手 <<<<<
请将第 0 题的代码写在下方:
dayperyear=365
hourperday=24
minperhour=60
secpermin=60
secperyear=str(dayperyear*hourperday*minperhour*secpermin)
print("一年有多少秒:"+secperyear)
请将第 1 题的代码写在下方:
temp=input("请输入这次数学考试的成绩: ")
score=int(temp)
if score == 100:
print("好棒,你离女神又近了一步")
else:
print("小子,继续努力吧")
print("游戏结束")
|
|