在Python中,如果想要打印字符串但不带引号,可以使用print()函数并传入字符串作为参数。例如:
print()
string = "Hello, World!" print(string)
执行以上代码,输出将会是:
Hello, World!
这样就可以打印字符串而不带引号。