摘要: 输入一个字符串 str, 输出第 m 个只出现过 n 次的字符,如在字符串 gbgkkdehh 中, 找出第2个只出现1 次的字符,输出结果:d 解决思路: 利用 collections 库的 Counter方法统计字符串每个单词出现的次数 1 from collections import Cou 阅读全文
posted @ 2021-07-22 16:53 甜咖啡1 阅读(557) 评论(0) 推荐(1) 编辑
摘要: 如下图是excel管理的接口用例 以下是操作上表用例的方法 1 import xlrddef get_excel(exceldir,sheetname,casename,*casetitle,selestor=['all']): ''' :param exceldir: excel路径 :param 阅读全文
posted @ 2021-07-12 16:45 甜咖啡1 阅读(210) 评论(0) 推荐(0) 编辑