|
发表于 2020-1-26 14:32:45
|
显示全部楼层
请回复您的答案^_^
>>>>> 问答题 <<<<<
第 0 题的答案是:命令行模式是直接在命令行窗口中运行python的py文件,需要先用文本编辑器编写代码,再通过命令行模式运行。交互模式是执行一行就返回一行代码的结果。
第 1 题的答案是:'ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning', 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError', 'ConnectionRefusedError', 'ConnectionResetError', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception', 'False', 'FileExistsError', 'FileNotFoundError', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'InterruptedError', 'IsADirectoryError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'ModuleNotFoundError', 'NameError', 'None', 'NotADirectoryError', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'PermissionError', 'ProcessLookupError', 'RecursionError', 'ReferenceError', 'ResourceWarning', 'RuntimeError', 'RuntimeWarning', 'StopAsyncIteration', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', 'TimeoutError', 'True', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', 'ValueError', 'Warning', 'ZeroDivisionError', '__build_class__', '__debug__', '__doc__', '__import__', '__loader__', '__name__', '__package__', '__spec__', '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 题的答案是:
>>> print()
>>> Print()
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
Print()
NameError: name 'Print' is not defined
也就是说Print是Python不认可的。
第 3 题的答案是:162
第 4 题的答案是:
ALT+F4: 关闭Windows窗口
ATL+DD: 开启代码调试功能;
ALT+M : 打开模块代码,先选中模块,就可以查看该模块的源码;
ALT+X : 进入Python Shell模式;
ALT+F+P: 打开路径浏览器,方便选择导入包进行查看、浏览;
ALT+C : 打开类浏览器,方便在模块方法体之间的切换;
第 5 题的答案是:guess 后面应该是==
>>>>> 动动手 <<<<<
请将第 0 题的代码写在下方:
>>> 365*24*3600
31536000
请将第 1 题的代码写在下方:怎么样在交互模式中输入这么多行文字?只有先编辑好再复制进去好像才可以。
|
|