python title()的用法

  1. In [45]: str = "this is string example....wow!!!"

  2. In [46]: str.title()
  3. Out[46]: 'This Is String Example....Wow!!!'
  4. In [47]: str.title().istitle()
  5. Out[47]: True






posted @ 2016-01-21 20:06  iAthena  阅读(2368)  评论(0编辑  收藏  举报