print("Let's practice everything.")
# \'→ ',\\ → \, \n→ 换行, \t→空格
print("You\'d need to know \'about escapes with \\ that do \n newlines and \t tabs.")
# 直接打印多行内容
poem = """
\tThe lovely world
with logic so firmly planted
cannot discern \n the needs of love
nor comprehend passion from intuition
and requires an explanation
\n\t\twhere there is none
"""
print(
ex24——单引号(')、双引号(")、三引号(''',""")
最新推荐文章于 2021-05-24 23:44:13 发布