16
: aşağıdaki hatayı alıyorumNeden "TypeError: Unicode için kodlama:" string veya buffer, int found "hatası alıyorsunuz? Bu küçük programı çalıştırdıktan sonra
#!/usr/bin/env python2.7
# -*-coding:utf-8 -*
a = 1
b = 2
c = 3
title = u"""a=""" + a + u""", b=""" + str(b) + \
u""", c=""" + str(c)
print(title)
:
u""", c=""" + str(c)
TypeError: coercing to Unicode: need string or buffer, int found
Ama şu çalışır gayet güzel!
#!/usr/bin/env python2.7
# -*-coding:utf-8 -*
a = 1
b = 2
c = 3
title = u""", b=""" + str(b) + \
u""", c=""" + str(c)
print(title)
Birisi bana neler olduğunu açıklayabilir mi lütfen?