摘要: 1.选择一个WebService接口作测试 假设 WebService url 为 http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx(查询手机归属地) 通过网页看到接口有两个,也可看到参数以及返回值 该接口来源于 http://www.web 阅读全文
posted @ 2020-10-10 11:21 南风丶轻语 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 0.补充(2021年11月1日说明): 以前使用谷歌上网助手可以白嫖,现在白嫖不了了,需要买会员了。所以不愿意花钱的同学就可以不用往下看了,愿意花钱的就最后买个谷歌上网助手的会员。一个月15块钱左右。 ~~~~~~~~~~~~~难受~~~~~~~~~~~~有白嫖的再继续更新~~~~~~~~~~~~~ 阅读全文
posted @ 2020-10-08 13:56 南风丶轻语 阅读(4891) 评论(0) 推荐(0) 编辑
摘要: 1、从字符串起始位置匹配(一次) re.match(pattern, string, flags=0) 匹配成功返回匹配对象,否则返回 None # -*- encoding=utf-8 -*- import re if __name__ == '__main__': pass string = ' 阅读全文
posted @ 2020-09-29 17:59 南风丶轻语 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1.使用 getattr(object, name, default=None) 获取属性 # -*- encoding=utf-8 -*-class Test: def __init__(self): self.name = '莉莉' self.age = 18if __name__ == '__ 阅读全文
posted @ 2020-09-22 14:36 南风丶轻语 阅读(2060) 评论(0) 推荐(0) 编辑
摘要: Python 解析xml 1、获取xml树 import xml.etree.ElementTree as ET def getTree(xmlName): xmlName = xmlName.strip() try: tree = ET.parse(xmlName) except: tree = 阅读全文
posted @ 2020-09-11 17:05 南风丶轻语 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1.一维list a = [1, 2, 1, 3, 4, 5] b = ['a', 'b', 'a', 'c', 'd', 'b'] a.sort() b.sort() print a print b 结果 2.多维list (1)根据前两项排序 my_list = [['a', '2', '', 阅读全文
posted @ 2020-09-11 10:15 南风丶轻语 阅读(181) 评论(0) 推荐(0) 编辑
摘要: (1)浮动 pull-left pull-right (2)清除浮动 clearfix <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="https://cdn.staticfile.o 阅读全文
posted @ 2020-09-10 17:51 南风丶轻语 阅读(239) 评论(0) 推荐(0) 编辑
摘要: (1)颜色 bg-primary bg-success bg-info bg-warning bg-danger <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="https://cdn 阅读全文
posted @ 2020-09-10 17:29 南风丶轻语 阅读(197) 评论(0) 推荐(0) 编辑
摘要: (1)颜色 btn btn-default btn-primary btn-success btn-info btn-warning btn-danger (2)大小 btn-lg btn-sm btn-xs (3)块级按钮 btn-block (4)状态 active disabled (5)按钮 阅读全文
posted @ 2020-09-10 16:27 南风丶轻语 阅读(166) 评论(0) 推荐(0) 编辑
摘要: (1)文件路径 +r 的场景 假设机器上有这么个文件 D:\aaa\ttt\a.txt 文件内容为 hello worldhello world 错误的python 读取方式为: # -*- encoding=utf-8 -*- with open('D:\aaa\ttt\a.txt', 'r') 阅读全文
posted @ 2020-09-10 16:19 南风丶轻语 阅读(1854) 评论(0) 推荐(0) 编辑