python3.0如何print字符串和数字

python2的时候我们在处理字符串时一般不怎么用小括号,但是在python3之中这个是必须的。

比如hello world,我们要这样写。


str = ("hello world")
print (str)


print (123)

你可能感兴趣的:(python3.0如何print字符串和数字)