练习题
摘要:4. 提取出下列字符串中的电话号码: 1*3*0%Fc3$ac4*cs6滴+3=F哈8ssa5*cs2*1 答: import re str1 = "1*3*0%Fc3$ac4*cs6滴+3=F哈8ssa5*cs2*1" fObj1 = re.finditer(r"\d", str1)#返回一个满足
阅读全文
posted @
2021-12-28 14:15
忘末
阅读(76)
推荐(0)
华为ensp
摘要:给当前设备重命名 sysname xxx => sys xxx 退出系统视图模式 Ctrl+z (quit) 配置本地回环地址(lo 0) int lo 0 ip addr 1.1.1.1 32 配置console口超时时间(XShell/secureCRT) user-interface conc
阅读全文
posted @
2021-12-23 14:34
忘末
阅读(613)
推荐(0)
Python网络爬虫
摘要:1.python爬取百度翻译 1 import requests 2 # 指定 url 3 url = "https://fanyi.baidu.com/sug" 4 # 要翻译的词 5 keyword = input("需要翻译的词:") 6 data = { 7 "kw": keyword 8
阅读全文
posted @
2021-12-17 15:31
忘末
阅读(54)
推荐(0)