字符串

1.+号的作用

>>> 'a'
'a'
>>> 'a'+'b'
'ab'

>>> print('a'+'b')
ab

 2.

>>> a='hello
'
>>> a
'hello
'
>>> print a
hello

 3.变量打印

a = 3
print('the number of a is:%d'%a+'
')
原文地址:https://www.cnblogs.com/ymjyqsx/p/6236428.html