XiaoMiku01 / custom_bilibili_nft

自定义 B站 NFT 空间背景和头像

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

如题

guomangbigcute opened this issue · comments

运行了一下,结果弹出这个错误:
File "D:\custom_bilibili_nft-main\custom_bilibili_nft-main\nft.py", line 10
SyntaxError: Non-ASCII character '\xe4' in file D:\custom_bilibili_nft-main\custom_bilibili_nft-main\nft.py on line 10, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

[已退出进程,代码为 1]

好了已经解决了,在源代码最顶部加了#coding:utf-8
但是又出现了这个错误
File "D:\custom_bilibili_nft-main\custom_bilibili_nft-main\nft.py", line 23
def md5(data: Union[str, bytes]) -> str:
^
SyntaxError: invalid syntax

你确定用的是python3?