python学习代码片段(一):字符串、列表
# \t TAB键 \n 换行 \转义字符 print('I\'m going to the movies') print(This is a string enclosed by \\ not '' )\nfirstVariable='Hello World' print(firstVariable) # 改变大小写输出 print(firstVariable.lower()) print(firstVariable.upper()) print(firstVariable.title()) # help(firstVariable.lower) # 分割字符串 以空格
下载地址
用户评论