摘要: ###正则去除末尾字符串 import re pv = "3724:32263930;3412:36033617;", pvName = "尺码:XXL;颜色:黑色;", pv = re.sub(";$", "", pv) pvName = re.sub(";$", "", pvName) 返回结果 阅读全文
posted @ 2021-04-21 14:05 莫贞俊晗 阅读(936) 评论(0) 推荐(0) 编辑