Bir süredir bununla uğraşıyorum. HTML'ye dize yazmaya çalışıyorum ama onları temizledikten sonra formatla ilgili sorunlarım var. İşte bir örnek:Python HTML Kodlama xc2 xa0
paragraphs = ['Grocery giant and household name Woolworths is battered and bruised. ',
'But behind the problems are still the makings of a formidable company']
x = str(" ")
for item in paragraphs:
x = x + str(item)
x
Çıktı:
"Grocery giant and household name\xc2\xa0Woolworths is battered and\xc2\xa0bruised.
But behind the problems are still the makings of a formidable\xc2\xa0company"
İstenilen çıktı: Bunu olur ve ben nasıl çözebileceğinizi açıklamak mümkün olduğunu umuyorum
"Grocery giant and household name Woolworths is battered and bruised.
But behind the problems are still the makings of a formidable company"
. Şimdiden teşekkürler! xa0 \ XC2 \
Kaynak dizginizde olağandışı Unicode boş alanı olup olmadığını kontrol ettiniz mi? –