在第3章,你将学习如何在被称为列表的变量中存储信息集,以及如何通过遍历列表来操作
其中的信息
写注释 # 代码越长 标识好代码的重要性 越来越重要
要求习惯:在代码中编写清晰,简洁的注释
开始研究更复杂的主题时,尽量将代码写的简洁清晰
#day 2019/2/20
#pyer gaofeng
bicycle = ['yaojianyun','laojiang','mahongguo',' ouyang']
print("puke is who great? " + bicycle[0].title())
print("majiang is who great? " + bicycle[1].title())
print("putong laoqian is who? " + bicycle[2].title() + bicycle[3].title())
_______________________________________________________________
修改列表元素练习 其实和shell数组一个原理 普通人难的是事,是行动,程序员 是用代码和别人说话 ,走路,交谈
modify list training
# this is list training
# day 2019/2/21
# pyer gaofeng
# this is modify training
motorcycles = ['check','jiongk','jinkaili']
print(motorcycles)
motorcycles[0]='check_menoy'
print(motorcycles)
motorcycles[1]='jiongs_check_of_you_me'
print(motorcycles)
['check', 'jiongk', 'jinkaili']
['check_menoy', 'jiongk', 'jinkaili']
['check_menoy', 'jiongs_check_of_you_me', 'jinkaili']
[Finished in 0.2s]
__________________________________________________________
ps:of course, you can modify any element