2013-05-27 125 views

回答

8

用途:

print ('\"',the_tuple[1],'\"', sep='') 
           ^^^^^^ 

注意,这些逃逸是完全没有必要的:

print ('"', the_tuple[1], '"', sep='') 

甚至更​​好,使用字符串格式化:

print ('"{}"'.format(the_tuple[1])) 
+0

非常感谢乔恩! –