摘要:
以管理员身份运行 powershell,使用命令停止MySQL服务: PS D:\AZ\mysql-8.0.18-winx64\bin> net stop mysql MySQL 服务正在停止. MySQL 服务已成功停止。 然后进入安装的 mysql 的 bin 目录下,如 D:\Software 阅读全文
摘要:
从起点到终点的路径如上图所示,每条路径的长度都不相同(权重),如何从起点找到一条路径,长度最短? 建模:GRAPH存储了整张图的结构;costs存储了从起点开始,到每个点的最短距离(从起点到A是6,但是从 起点-> B → A 是5,所以后面A的路径其实会变成5);PARENTS记录了每个地点的父节 阅读全文
摘要:
def dc(num,dic): # 分而治之,最少的钱数组合 kind = [100,50,20,10,5,1] # 钱的面额 if num == 0: return dic else: for k in kind: if num>=k: num = num - k if k in dic: di 阅读全文
摘要:
import os """判断两个文件夹里是否有相同文件名的文件""" def fileList(path): filelist = {} n = 1 for root,folders,files in os.walk(path): for file in files: print('\rHas s 阅读全文
摘要:
from uiautomator import Device from PIL import Image import math import operator from functools import reduce # 比较图片 def image_compare(img1,img2): ima 阅读全文
摘要:
import os def del_none_folder(path): max_len = len(path.split('\\')) for folder,subfolder,file in os.walk(path): # 获取最大路径长度 if len(folder.split('\\')) 阅读全文