摘要: 字符串'abcdfdbcg',输出去掉含‘bc’后的字符 # str.replace("old","new") # -*- coding:utf-8 -*- def rm_str(str1, str2): i, j = 0, len(str1) s, e = 0, len(str2) tmp_lis 阅读全文
posted @ 2021-11-05 20:45 keep2021 阅读(415) 评论(0) 推荐(0) 编辑
摘要: a=[3,4,5,7,8,34] b=[4,5,9,45,6] 求 两个列表的和,如果和大于10进位 # coding:utf-8 def add_list(int_list1,int_list2): i,j=0,len(int_list1) s,t=0,len(int_list2) result_ 阅读全文
posted @ 2021-11-05 20:43 keep2021 阅读(470) 评论(0) 推荐(0) 编辑