Python 打印字符串

Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 26 2018, 23:26:24) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "copyright", "credits" or "license()" for more information.
>>> print('hello world')
hello world
>>> print('good'+'morning')
goodmorning
>>> print("I'm fine")
I'm fine
>>> print('I\'m ok')
I'm ok
>>> print('\\n is enter')
\n is enter
>>> print(str(1))
1
>>> 

猜你喜欢

转载自blog.csdn.net/weixin_43880667/article/details/85110676