Python学习笔记1—列表的简单操作
1. 列表的定义在Pyhton中,用[]来表示列表。并用逗号来分隔其中的元素,在下方是一个简单的列表示例,这个列表包含几种自行车: 12bicycles = ['trek', 'cannondale', 'redline', 'specialized']print(bicycles) 下方为打印结果: 1['trek', 'cannondale', 'redline', 'specialized'] 2. 访问列表元素在Python中,可以通过索引来访问列表元素,如: 12bicycles = ['trek', 'cannondale', 'redline',...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment






