- 博客(2)
- 收藏
- 关注
原创 python import 另一个py模块 没反应也不报错
Mac上有内置python2.7我又下载的3.74下面两个py文件,simple game import games问题是不报错也不显示,请大神求解!!!# Game# 演示模块的创建class Player(object): """ A player for a game.""" def __init__(self, name, score = 0): ...
2019-07-17 12:29:06 882
原创 萌新 学习python 途中一点疑惑记录IndexError: string index out of range
Word Jumble计算机随机挑选一个单词,然后把它“弄乱”玩家必须才出来本来的那个单词import randomWORDS =(“python”,“jumble”,“easy”,“difficult”,“answer”, “xylophone”)word = random.choice(WORDS)correct = wordjumble =" "while word:po...
2019-05-01 02:00:04 5438
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人