# -*- coding: utf_8 _*_
# Author:Vi
import copy
goods = [0,[1,'iphone',20],[2,'ipad',2500]]
salary = int(input("Please tell me your salary:"))
list = ['My list:']
count = 0
while count< 1:
good_good = copy.deepcopy(goods)
print(goods[1:])
n = int(input("Tell me your thing's ID:"))
if good_good[n][2] > salary:
print("You have not enough money~")
break
elif good_good[n][2] < salary:
print("Yeap,you have brought it!")
salary = salary - good_good[n][2]
list = list + good_good[n]
refree = input("Do you wang to buy something more?Please tell me yes or no.")
if refree == 'yes':
continue
else:
print(list)
print("I still have",salary,"yuan")
break
啊,Yeah!

最新文章

  1. 基于Codeigniter框架实现的APNS批量推送—叮咚,查水表
  2. 第3.2 使用案例1:股票期货stock portfolio 21050917
  3. LINQ to SQL语句(4)之Join
  4. CSS3 3D骰子
  5. 蓝牙的HFP协议笔记
  6. WM (Constants)
  7. linux 下某个文字在某几行的shell 写法 。
  8. binarySearch二分查找——Javascript实现
  9. EasyUI 使用注意点
  10. 【Oracle】-【ROWNUM与索引】-索引对ROWNUM检索的影响
  11. YoMail 邮箱客户端的社会化之路,起于邮箱,不止于邮件
  12. typescript简介
  13. [20180813]刷新共享池与父子游标.txt
  14. elk kibana查询语法
  15. docker 安装nginx、php-fpm
  16. nginx下No input file specified错误的解决
  17. 【Unity】2.1 初识Unity编辑器
  18. 文件打包代码更新 使用json记录打包文件信息
  19. .Net WebApi部署问题
  20. 自定义圆形头像CircleImageView的使用和源码分析

热门文章

  1. CentOS 7.4 安装 网易云音乐
  2. NPashaP的二分图源码部分
  3. Hexo 与 Git 集成
  4. Fans同学已死,终年24岁
  5. 题解 P2504 【[HAOI2006]聪明的猴子】
  6. 洛谷 P1071 潜伏者
  7. spring AOP的Pointcut注解报错
  8. cxf 实例解读
  9. uva 104 Arbitrage (DP + floyd)
  10. AES加密解密在JAVA和ANDROID下互通