摘要:
s1 = '###12314##231###' print(s1.split('#')) #split,从左往右遇见# 就拆分一次['', '', '', '12314', '', '231', '', '', ''] print(s1.strip('#')) #strip 去除两侧的 # 12314##231 print(s1.lstrip('#')) #lstrip 去除左侧的 ... 阅读全文
posted @ 2019-06-20 23:18
Tarzen
阅读(168)
评论(0)
推荐(0)

浙公网安备 33010602011771号