Questions tagged «python-3.8»

3
AttributeError:模块“时间”在Python 3.8中没有属性“时钟”
我已经编写了生成公共和私有密钥的代码。它在Python 3.7上运行良好,但在Python 3.8中失败。我不知道在最新版本中它怎么会失败。为我提供一些解决方案。 这是代码: from Crypto.PublicKey import RSA def generate_keys(): modulus_length = 1024 key = RSA.generate(modulus_length) pub_key = key.publickey() private_key = key.exportKey() public_key = pub_key.exportKey() return private_key, public_key a = generate_keys() print(a) Python 3.8版本中的错误: Traceback (most recent call last): File "temp.py", line 18, in <module> a = generate_keys() File "temp.py", …

1
pycharm无法使用python3.8连接到控制台
我不知道为什么;但由于python 3.8已发布;我无法运行pycharm控制台,它始终处于“正在连接”状态。 我对python 3.7没问题;因为控制台会立即打开。 在这里,您可以看到我已经尝试过几次运行控制台,但是即使我等了一天,我也知道。它不连接到控制台。但是,当我将解释器从python3.8更改为python3.7时,我打开的新控制台都在一秒钟之内就完成了设置。 错误: C:\Program Files\JetBrains\PyCharm 2019.1.3\helpers\pydev\_pydevd_bundle\pydevd_resolver.py:138: SyntaxWarning: "is not" with a literal. Did you mean "!="? if found.get(name) is not 1: Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm 2019.1.3\helpers\pydev\pydevconsole.py", line 33, in <module> from _pydev_bundle.pydev_console_utils import BaseInterpreterInterface File "C:\Program Files\JetBrains\PyCharm 2019.1.3\helpers\pydev\_pydev_bundle\pydev_console_utils.py", line 11, in <module> from …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.