- 博客(3)
- 收藏
- 关注
原创 Hero’s Inventory 程序简介
Hero’s Inventory 程序简介Hero‘s Inventory维护的是一个英雄的仓库。在这个程序中仓库是用一个元组表示的。元组中的字符串分别表示的是英雄所拥有的一个物品.#演示元组的创建#先创建一个空元组inventory=()#把元组当成条件来用if not inventory: print("You are empty-handed.")input('\n\npress the enter key to exit.')#创建一个带有一些内容的元组invertory=
2021-03-21 20:58:21
168
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人