0

嗨,我刚刚安装了windows 11python 3.10pycharm 2021.2.2 , 现在当我在 pycharm 中使用 python 3.10 并在 python 3.10 中使用一些新功能时,我的代码中有一些亮点,但代码工作正常,这就是我正在经历的:

pycharm 2021.2 和 python 3.10 中的语法错误突出显示

我真的不知道如何解决它请帮忙

4

1 回答 1

1

尝试删除括号,然后:

with open(file = "file1") as file1, open(file="file2") as file2:
    print(file1)
    print(file2)

对我有用,ps 我在 Ubuntu 上使用 PyCharm 2021.2.2 专业版。

于 2021-10-05T11:52:01.097 回答