python 字符串

字符串函数:

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

连接字符串 join

arr_list = ['w','o','w']
print("".join(arr_list)) # wow
-------------------------------------------------------------逆水行舟,不进则退。
原文地址:https://www.cnblogs.com/alilliam/p/11764213.html