|
发表于 2022-10-20 16:09:16
|
显示全部楼层
请回复您的答案^_^
>>>>> 问答题 <<<<<
第 0 题的答案是:短代码可以在交互模式写,长代码在编辑模式写
第 1 题的答案是:import、int(temp)
第 2 题的答案是:Nonono不一样,在Python里,大小写不一样就是两个不同的代码
第 3 题的答案是:挺多的['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'format_map', 'index', 'isalnum', 'isalpha', 'isascii', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'removeprefix', 'removesuffix', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']
第 4 题的答案是:这个确实不知道
第 5 题的答案是:if guess=8: 错
if guess==8: 对
>>>>> 动动手 <<<<<
请将第 0 题的代码写在下方:
>>>365*60*60*60
请将第 1 题的代码写在下方:
>>>"""用Python实现一个小交互"""
temp=input("输入这次数学考试的成绩")
guess=int(temp)
if guess==100:
print("好棒,你离女神又近了一步")
else:
print("小子,想要幸福,就得努力!")
print("游戏结束,不玩啦!")
|
|