Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Revisions

1 of 2
tkbx
  • 16.4k
  • 34
  • 93
  • 123

Python unicode character codes?

Is there a way to "insert" a Unicode character into a string in python? For example,

>>>import unicode
>>>string = u'This is a full block: %s' % (unicode.charcode(U+2588))
>>>print string
This is a full block: █
tkbx
  • 16.4k
  • 34
  • 93
  • 123
lang-py

AltStyle によって変換されたページ (->オリジナル) /