请教Python入门级问题
days = "Mon Tue Wed Thu Fri Sat Sun"months = "\nJan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
print("Here are the days: ",days)
print("Here are the months: ",months)
print("""
There's something going on here.
With the three double-quotes.
We'll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6.
""")
这段代码中最后一个输出连用三个双引号是什么意思? 三对引号表示要输出换行的内容 松_HWI3H 发表于 2019-9-4 15:09
三对引号表示要输出换行的内容
为什么要用三个引号呢?是什么原理呢 ‘https://blog.csdn.net/kevindree/article/details/86799116’参考这个 松_HWI3H 发表于 2019-9-4 15:15
‘https://blog.csdn.net/kevindree/article/details/86799116’参考这个
看懂了,感谢! 如果没问题,结帖吧
页:
[1]