print("\")#反斜杠
print("’")#单引号
print(""")#双引号
print("\aHYQ")#响铃-用于触发系统蜂鸣器
print("\nHYQ")#换行符
print("\tHYQ")#水平制表符-相当于Tab键
###通过字符串方法创建新字符串
quote = "I think there is a world market for maybe five computers "
print(“Qriginal quote:”)
print(quote)
print("\nIn uppercase:")
print(quote.upper())#返回字符串的大写形式
print("\nInlowercase:")
print(quote.lower())#返回字符串的小写形式
print("\nAs a title")
print(quote.title())#返回一个新的字符串,每个单词的字符串大写,其余小写
print("\nWith a minor replacement")
print(quote.replace(“five”, “millions of”))#replace(old,new[,max])返回一个新的字符串,old会被替换成新的字符串new,可选的max用于替换限制的次数
print("\n")
print(quote.swapcase())#返回一个新的字符串,大小写互换
print("\n")
print(quote.strip())#返回一个新的字符串,原始字符首位一切空白符都会被除掉
print("\n")
print(quote.capitalize())#返回一个新的字符串,首字母大写,其余小写