您可以通过以下三种方式之一进行 *** 作:
一起使用单引号和双引号:
print('"A word that needs quotation marks"')"A word that needs quotation marks"
print(""A word that needs quotation marks"")"A word that needs quotation marks"
使用三引号引起来的字符串:
print(""" "A word that needs quotation marks" """)"A word that needs quotation marks"
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)