摘要: bicycles = ['trek','cannondale','redline','specialized'] #访问列表元素 print(bicycles) bicycles = ['trek','cannondale','redline','specialized'] print(bicycles[0]) bicycles = ['trek','cannondale','... 阅读全文
posted @ 2016-09-11 14:32 JessisLong 阅读(211) 评论(0) 推荐(0) 编辑
摘要: name = "ada lovelace" #单词首字母大写 print(name.title()) name = "Ada Lovelace" #全部大写,全部小写 print(name.upper()) print(name.lower()) first_name = "ada" #字符串的拼接 last_name = "lovelace" full_name = first_... 阅读全文
posted @ 2016-09-11 00:16 JessisLong 阅读(107) 评论(0) 推荐(0) 编辑