摘要:
text = open('text.txt','r',encoding='utf-8').read()old,new = ['(',')',',','.'],['(',')',',','。']def replace(old,new): data = '' for i in text: if i in 阅读全文
posted @ 2022-06-20 16:23
记录——去繁就简
阅读(44)
评论(0)
推荐(0)
摘要:
方法一:import os,psutildef file(d): f = os.listdir(d) files(d,f)def files(d,f): for i in f: try: if '.' in i: o = os.path.join(d+i) print(o) else: o = os 阅读全文
posted @ 2022-06-20 16:22
记录——去繁就简
阅读(166)
评论(0)
推荐(0)
摘要:
# 需要安装的模块# pip install pywifi# pip install comtypes# -*- coding: utf-8 -*-import timefrom pywifi import const, PyWiFi, Profileclass WiFi(object): # 创建 阅读全文
posted @ 2022-06-20 16:22
记录——去繁就简
阅读(1183)
评论(0)
推荐(0)
摘要:
import difflibdef stri_similar(s1,s2): return difflib.SequenceMatcher(None,s1,s2).quick_ratio()data1 = '你好啊'data2 = '你好'# for i in range(len(data1)):# 阅读全文
posted @ 2022-06-20 16:20
记录——去繁就简
阅读(1018)
评论(0)
推荐(0)

浙公网安备 33010602011771号