网站首页 站内搜索

搜索结果

查询Tags标签: replist,共有 1条记录
  • Python技巧-实现批量替换字符串

    场景一 批量将不同的字符串替换为不同内容 # 要替换的内容 key-value replist = {"1":"一","2":"二","3":"三"}txt = "111-222-333-112233-123" def dl(t: str, repl: dict):for i in repl:t = t…

    2022/9/14 14:16:12 人评论 次浏览
扫一扫关注最新编程教程