您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. Python-CCF:20191203 化学方程式(使用正则表达式re库)

  2. 题目链接 为了降低难度。以下分别为,只考虑大小写字母和等号的方程组、加入数字、加入括号(非嵌套) import re def cnt(string: str): pattern = r"[A-Z][a-z]*" #匹配元素 elements = re.findall(pattern, string) count = {} # 统计元素词频 for item in elements: if item in count:
  3. 所属分类:其它

    • 发布日期:2020-12-22
    • 文件大小:60kb
    • 提供者:weixin_38742124