猫史档案馆


【Python作品分享】01【求助帖】

用户:芝士君Cheese芝士君Cheese查看:0 回复:1 评论:0 创建时间:2021-07-29T13:11:57


【作品展示】

center_image

 

【作品介绍】

会报错

 

【作品源代码】

import time
import json
i = 0
while i < 101:
    print("{}%".format(i), end="")
    print("-"*i)
    i += 1
    time.sleep(0.1)
with open(r"C:\Users\ikaros\Desktop\app\data\laod.json","r") as f:
    file=json.load(f)
print(file)

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
lsk666666lsk666666

没发json也没错误信息,就简单改的,有错误留言

import time
import json
i = 0
while i < 101:
    print("{}%".format(i), end="")
    print("-"*i)
    i += 1
    time.sleep(0.1)
file = None
with open(r"C:\Users\ikaros\Desktop\app\data\laod.json","r") as f:
    file=json.load(f.read())
print(file)

点赞1


评论