笨方法学python-习题1
练习题1
print("Hello Wor1d!")
print("Hello Again ")
print("I like typing this .")
print(" This is fun .")
print(' Yay! Printing .')
print(" I'd much rather you 'not' .")
print(' I "said" do not touch this.')
print(' I "said" do not touch this.')
知识点总结:
1、 print 里面的内容不用加入换行符 \n,自动换行
2、print里面可以用“”,或者‘’
3、如果不用转义,那么需要单引号,双引号,交叉使用
关于第三点找到了一篇特别好的文章,参考如下:
Python单引号和双引号区别详解|极客教程
4、除了双引号,单引号,还可以用三双引号,三单引号
在python中输出双引号或者单引号的四种解决方案_python单引号怎么打出来-CSDN博客