在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)
输出结果如下:
在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)
输出结果如下: