Python Cookbook 2nd Edition

2013/04/08 book

# License: (CC 3.0) BY-NC-SA

cha01 text

char vs number

  • ord, it accepts unichr
  • chr
  • unichr

string format

  • s.ljust(len, fill)
  • s.rjust(len, fill)
  • s.center(len,fill)

string concate

join is better than operator + or +=

TODO: translate

Search

    Table of Contents