摘要:
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
記錄——去繁就簡
閱讀(42)
評論(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
記錄——去繁就簡
閱讀(160)
評論(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
記錄——去繁就簡
閱讀(1181)
評論(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
記錄——去繁就簡
閱讀(1011)
評論(0)
推薦(0)

浙公網安備 33010602011771號