字符串运算符 +连接,*重复输出,[]索引截取字串。字符串格式化 print "My name is %s and weight is %d kg!" % ('Zara', 21) 格式化符号同C。 字符串三引号 可以允许不同类型的特殊字符出现,不需要转义。