1. 单引号
指定字符串——所有引号内的空间,诸如空格与制表符,都将按原样保留 。e.g.:'Hello world!'
2. 双引号
与单引号作用相同。e.g.:“Hello World!”
3. 三引号
使用三个引号——"""或'''来指定多行字符串
'''这是一段多行字符串。这是它的第一行。
This is the second line.
"How old are you?"
"22"
'''
4. 格式化方法
从其他信息中构建字符串——format()
age = 4
name = 'Bob'
print('{0} was {1} years old when he broke the cup'.format(name, age))
print('Why is