摘要:
a='*q*w*e*' print(a.strip('*'))去除首尾 * print(a.lstrip('*'))去除左边 * print(a.rstrip('*'))去除右边 * 阅读全文
posted @ 2021-03-04 11:27
火烧火燎
阅读(46)
评论(0)
推荐(0)
摘要:
这这个东西以后肯定会经常用的 ,先保存 ,用的多了就会了 阅读全文
posted @ 2021-03-04 10:54
火烧火燎
阅读(65)
评论(0)
推荐(0)
摘要:
is 比较字符串儿 是否一样 使用格式 (变量 )is(变量 ) id 查询变量的地址 使用格式 id(变量 ) in 查询字符串中是否有某一个字符 使用格式 ('字符串儿' )in变量 阅读全文
posted @ 2021-03-04 10:42
火烧火燎
阅读(67)
评论(0)
推荐(0)
浙公网安备 33010602011771号