PythonL: invalid syntax file “”, line 1

后端 未结 5 2064
太阳男子
太阳男子 2021-02-18 22:14

When doing python3 Webhook.py (this is the file), it gives me the error: File \"\", line 1 (%X - %x) ^ SyntaxError: invalid syntax

5条回答
  •  长情又很酷
    2021-02-18 22:48

    it might also be that you have a python 3.8 compatible way of string formating, such as:

    f"print{count=}"
    

    which is not compatible with 3.6, 3.7.

    In that case, you can either decide to require the user to upgrade to python3.8, or downgrade your code.

提交回复
热议问题