摘要:
re.match函数 re.match 尝试从字符串的起始位置匹配一个模式,如果不是起始位置匹配成功的话,match()就返回none。 def match(self, string, pos=0, endpos= 1): """Matches zero | more characters at t 阅读全文
摘要:
os 模块 可以通过os模块调用系统命令,获得路径,获取操作系统的类型等都是使用该模块 1、通过os 获取系统类型:os.name() import os print(os.name) nt nt 代表windows posix linux 2、执行系统命令: os.system('命令') 只会调 阅读全文