摘要: 8.20 8月19 打卡:sock son sil sam 常见字:he she 8月18 阅读全文
posted @ 2024-08-19 16:50 凝眸神恍 阅读(1) 评论(0) 推荐(0) 编辑
摘要: def get_max_count(l:list): dict1={} for i in l: if i not in dict1: c = l.count(i) dict1[i] = c max_count= sorted(dict1.values())[-1] for k,v in dict1. 阅读全文
posted @ 2022-05-16 14:54 凝眸神恍 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #IP的格式:(1~255).(0~255).(0~255).(0~255) def check_ip(s): if not isinstance(s,str): print("请输入字符串!") return else: if s.count(".")!=3: print("该字符串不是ip!") 阅读全文
posted @ 2022-05-10 15:29 凝眸神恍 阅读(374) 评论(0) 推荐(0) 编辑