我想使用eval将打开的txt文件转为字典,报错如下
data = eval(data_)
File "", line 0
^
SyntaxError: unexpected EOF while parsing
with open('word.txt', encoding="utf-8") as f:
data_ = f.read()
data = eval(data_)
怎么办啊啊
我想使用eval将打开的txt文件转为字典,报错如下
data = eval(data_)
File "", line 0
^
SyntaxError: unexpected EOF while parsing
with open('word.txt', encoding="utf-8") as f:
data_ = f.read()
data = eval(data_)
怎么办啊啊