如何在Python中执行以下操作?
row = [unicode(x.strip()) for x in row if x is not None else '']
Run Code Online (Sandbox Code Playgroud)
实质上:
当我想print在Python中执行命令并且我需要使用引号时,我不知道如何在不关闭字符串的情况下执行此操作.
例如:
print " "a word that needs quotation marks" "
Run Code Online (Sandbox Code Playgroud)
但是当我尝试做我上面做的事情时,我最终关闭了字符串,我不能把我需要的字放在引号之间.
我怎样才能做到这一点?