![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
M-A-D
这个作者很懒,什么都没留下…
展开
-
Python(3)
Python——修改、删除和添加元素假设你要邀请别人共进晚餐,#创建一个你想邀请的人的名单,并打印 guest=['Elon','Jeff','Zurk','Gates','Jack']; print("guests' list:"); print(guest);#某位嘉宾不可以来 cancle_guest=guest[3]; print('\n'+cancle_guest+" can't come原创 2017-09-27 16:23:49 · 511 阅读 · 0 评论 -
Python(4)操作列表
4.1遍历整个列表使用for循环magicians=['a','b','c'] for magician in magicians: print(magician.title()+",that was a great trick!") print("I can't wait to see you,"+magician.title()+".\n") print("Thank you,e原创 2017-10-24 15:36:46 · 349 阅读 · 0 评论