- 创建 .idea 目录和相关配置文件,设置项目结构 - 添加多个课堂成果示例代码,涵盖不同主题和功能 - 创建和配置 .gitignore 文件,忽略特定文件和目录
8 lines
180 B
Python
8 lines
180 B
Python
shop = { '牛奶':10, '辣条':10, '方便面':8, '火腿肠':8 }
|
|
shop['方便面'] = 4
|
|
shop['火腿肠'] = 4
|
|
print(shop)
|
|
shop['面包'] = 5
|
|
print(shop)
|
|
for i in shop:
|
|
print(i) |