package corejava; public class FourTwo { static int m;//(m,n)为几行几列 static int n; static int p;//(p,q)为终点 static int q; static int min=9999; static int [][]a=new int [51][51];//存放地图 static int [][]b=new int [51][51];//存放路径 static String []record=new S…
package corejava; public class FourThree { static int [][]a=new int[50][50]; static int [][]b=new int[50][50]; static int m; static int n; static int p; static int q; public static void dfs(int step) { System.out.println("dfs"+step); int [][]nex…
python全栈开发笔记第二模块 第四章 :常用模块(第三部分) 一.正则表达式的作用与方法 正则表达式是什么呢?一个问题带来正则表达式的重要性和作用 有一个需求 : 从文件中读取所有联系人的电话 1.用传统方式 f = open("re_file", "r") list_f = [] for date in f.readlines(): name, age, phone, time = date.split(",") if p…