AttributeError: 'FileInput' object has no attribute 'read'

后端 未结 0 1497
梦谈多话
梦谈多话 2020-12-14 01:44

This is my code

import fileinput
import json

with fileinput.input(files=(\'bot_details.json\')) as f:
    my_load = json.load(f)
    TOKEN=my_load["TOKE         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题