Close

Menu

  • Zettelkasten
  • Git
  • Go
  • Linux
  • Other
  • PyQt
  • Python
  • Rust
  • Tech
  • Vim
  • Subscribe
Home Menu

Tag 字符串

Posts: 1
Page 1 / 1

Python超简单截取中文字符串

Gray King | Wed 11 July 2012

web应用难免会截取字符串的需求,Python中截取英文很容易: >>> s = 'abce' >>> s[0:3] 'abc' 但是截取utf-8的中文机会截取一半导致一些不是乱 …

comments

Page 1 / 1
Theme Attila Published with Pelican