摘要:
bicycles = ['trek','cannondale','redline','specialized'] #访问列表元素 print(bicycles) bicycles = ['trek','cannondale','redline','specialized'] print(bicycles[0]) bicycles = ['trek','cannondale','... 阅读全文
摘要:
name = "ada lovelace" #单词首字母大写 print(name.title()) name = "Ada Lovelace" #全部大写,全部小写 print(name.upper()) print(name.lower()) first_name = "ada" #字符串的拼接 last_name = "lovelace" full_name = first_... 阅读全文