show
不起作用,它不会显示我的任何项目
在代码的第一个文件中,我有以下内容:
在项目.py公司名称:
list(inventory_list):
inventory = ["a wooden staff", "a wizard hat", "a cloak of invisibility",
"some elven bread", "an unknown potion", "a scroll of uncursing",
"a scroll of invisibility", "a crossbow", "a wizard's cloak"]
item = inventory.pop()
item = inventory.pop(1)
item = inventory.pop(2)
item = inventory.pop(3)
item = inventory.pop(4)
item = invnetory.pop(5)
item = inventory.pop(6)
item = inventory.pop(7)
item = inventory.pop(8)
在我的另一个文件中主.py文件看起来像这样。在
^{pr2}$另一个问题是我需要单独的文件还是可以把它们放在一个文件中?在
我觉得这更符合你的要求。另外,我会帮助你,因为我可以从你的代码中看到一些你正在挣扎的地方,但是请检查关于向SO发布问题的规则,因为正如前面提到的,这不符合配置文件。同时也要检查我的不同之处,并试图理解原因。在
相关问题 更多 >
编程相关推荐