会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
SinHang
博客园
首页
新随笔
联系
订阅
管理
2018年6月5日
Python的list购物流程
摘要: #先输入金额,然后通过商品编号购买,退出后有购物结算Product = [ ('Pen',5), ('Apple*3',10), ('Phone',3000), ('Fan',50), ('Ball',130),]Shopping_list = []while True: Salary = inpu
阅读全文
posted @ 2018-06-05 00:31 SinHang
阅读(334)
评论(0)
推荐(0)
2018年6月1日
Python的list简单练习
摘要: L=[1,2,3,9,4,'233',5,6,7,9,'233','233']L2=['个','数','企']L.append(45)L.insert(2,77)L[2]=66print(L)L.remove(66)del L[0]L.pop(2)print(L)print(L[2:4])print
阅读全文
posted @ 2018-06-01 20:45 SinHang
阅读(222)
评论(0)
推荐(0)
公告
点击右上角即可分享