Why Do I Get The Error "typeerror: Coercing To Unicode: Need String Or Buffer, Int Found"?
After running this small program: #!/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(ti
Solution 1:
You didn't wrap a
in a str
call. You need to do str(a)
where you have a
, just like you did for b and c.
Post a Comment for "Why Do I Get The Error "typeerror: Coercing To Unicode: Need String Or Buffer, Int Found"?"