You could do this in one of three ways:
- Use single and double quotes together:
print('"A word that needs quotation marks"')
"A word that needs quotation marks"
- Escape the double quotes within the string:
print(""A word that needs quotation marks"")
"A word that needs quotation marks"
- Use triple-quoted strings:
print(""" "A word that needs quotation marks" """)
"A word that needs quotation marks"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…