python 字符串

字符串函数:

  • find()
  • replace()
  • startswith()
  • endwith()
  • isalpha() 判断字符串是否都是字母
  • lower()
  • title() 首字母转换为大写
  • upper()
  • strip() 去掉首尾指定字符
  • split()

连接字符串 join

arr_list = ['w','o','w']
print("".join(arr_list)) # wow
posted @ 2019-10-30 12:53  youqia  阅读(99)  评论(0编辑  收藏  举报