相关疑难解决方法(0)

在引号内使用引号

当我想print在Python中执行命令并且我需要使用引号时,我不知道如何在不关闭字符串的情况下执行此操作.

例如:

print " "a word that needs quotation marks" "
Run Code Online (Sandbox Code Playgroud)

但是当我尝试做我上面做的事情时,我最终关闭了字符串,我不能把我需要的字放在引号之间.

我怎样才能做到这一点?

python string

54
推荐指数
4
解决办法
22万
查看次数

标签 统计

python ×1

string ×1