2013-11-26 12 views

cevap

8

Python'a, ters eğik çizgiyi izleyen çizgiyi doğrudan reddetmesini söyler. Sonuç dizesi değil \nContent-Type: ile Content-Type: başlar: İki sonuç nasıl farklı

>>> '''\ 
This is the first line. 
This is the second line. 
''' 
'This is the first line.\nThis is the second line.\n' 
>>> ''' 
... This is the first line. 
... This is the second line. 
... ''' 
'\nThis is the first line.\nThis is the second line.\n' 

Not; İlkinde başlangıçta \n yeni satır karakteri, diğeri var.

İlgili konular