摘要: 进入以下注册表分支: [HKEY_CURRENT_USER/Software/Microsoft/Terminal Server /Client/Default] 列出的MRU0 / MRU1 ... 显示的就是你使用桌面连接器输入过的IP地址。 把你不需要的IP删除掉就可以了。 阅读全文
posted @ 2021-12-16 01:00 不爱缺氧i 阅读(136) 评论(0) 推荐(0)
摘要: 常用的 f''' . 表示单个字符 [] 字符集,对单个字符给出取值范围 [abc]表示a,b,c,[a-z]表示a-z单字符 [^ ] 非字符集 [^abc]表示非a或b或c的单个字符 * 前一个字符0次或无限次扩展 abc*表示ab abc abcc abccc等 + 前一个字符1次或无限次扩展 阅读全文
posted @ 2021-12-15 21:22 不爱缺氧i 阅读(29) 评论(0) 推荐(0)
摘要: 一、基础 1.注释 # ''' ''' 2.运行python的方式 一 命令行运行 输入代码立刻返回,无法永远保存 二 集成工具运行 自动保存代码,检查语法错误 print(520,'jasd','哈哈') 3.变量 定义 name='大海' # = 是赋值 命名规则 下划线 age_of_daha 阅读全文
posted @ 2021-12-15 21:20 不爱缺氧i 阅读(37) 评论(0) 推荐(0)
摘要: sys.argv 命令行参数List,第一个元素是程序本身路径 sys.modules 返回系统导入的模块字段,key是模块名,value是模块 sys.exit(n) 退出程序,正常退出时exit(0) sys.version 获取Python解释程序的版本信息 sys.maxint 最大的Int 阅读全文
posted @ 2021-12-15 13:16 不爱缺氧i 阅读(70) 评论(0) 推荐(0)
摘要: 1 import requests 2 import sys 3 4 5 def a(path): 6 response = requests.get(path) 7 a = response.text.split("<title>")[1].split("</title>") 8 print(a[ 阅读全文
posted @ 2021-12-15 12:19 不爱缺氧i 阅读(18) 评论(0) 推荐(0)
摘要: python bytes和str两种类型可以通过函数encode()和decode()相互转换,str→bytes:encode()方法。str通过encode()方法可以转换为bytes。bytes→str:decode()方法。如果我们从网络或磁盘上读取了字节流,那么读到的数据就是bytes。要 阅读全文
posted @ 2021-12-15 10:45 不爱缺氧i 阅读(52) 评论(0) 推荐(0)
摘要: 1 public static void main(String[] args) { 2 Scanner sc = new Scanner(System.in); 3 String user ; 4 String poaword ; 5 for (int i = 0; i < 3; i++) { 6 阅读全文
posted @ 2021-12-14 13:34 不爱缺氧i 阅读(92) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { int [][] b = {{1,2,3},{1,2,3},{1,2,3}}; for (int i = 0; i < b.length; i++) { for (int j = 0; j < b.length; j+ 阅读全文
posted @ 2021-12-14 13:32 不爱缺氧i 阅读(829) 评论(0) 推荐(0)
摘要: 两种方法 python -m http.server 8888 python -m SimleHttpServer 8090 阅读全文
posted @ 2021-12-14 13:29 不爱缺氧i 阅读(182) 评论(0) 推荐(0)
摘要: public static void traverseArray(int [] a){ System.out.print("["); for (int i = 0; i < a.length; i++) { if(i==a.length-1) { System.out.print(a[i]); }e 阅读全文
posted @ 2021-12-14 13:27 不爱缺氧i 阅读(80) 评论(0) 推荐(0)