在python中输出双引号问题的解决方案

在python的程序设计中,输出含有双引号的字符串:

a="Albert Einstein once said,"
b="A person who never made a mistake never tried anything new."
full=a+"\""+b+"\""
print(full)
full=a+'"'+b+'"'
print(full)

输出结果如下:

猜你喜欢

转载自blog.csdn.net/qq_41903671/article/details/81329472