设为首页收藏本站

Crossin的编程教室

 找回密码
 立即加入
楼主: mty1111
打印 上一主题 下一主题

【Python 第41课】 用文件保存游戏(3)

[复制链接]

1

主题

0

好友

15

积分

新手上路

Rank: 1

楼主
发表于 2018-4-1 14:55:01 |显示全部楼层
scores[name] = [str(game_times), str(min_times), str(total_times)]

mac pycharm 2.7  报错

list indices must be integers, not str

烦请指正
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即加入

QQ|手机版|Archiver|Crossin的编程教室 ( 苏ICP备15063769号  

GMT+8, 2024-5-10 16:48 , Processed in 0.026722 second(s), 22 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部