10 2020 档案
摘要:''' 时间:2020/10/28 功能:初始化session 目录: 一: headers 二: cookies ''' 一: headers # 初始化 - headers header = { "Connection": "keep-alive", "Accept":"application/
        阅读全文
                
摘要:''' 时间:2020/10/27 功能:断言与报告 目录: 一: 目录 1 缩进目录 2 完整目录 二: 具体内容 1 case: test_qq_api.py 2 case: test_integer_arithmetic.py 3 run_all_case.py 三: 报告展示 四: 完整内容
        阅读全文
                
摘要:''' 时间:2020/10/26 目录: 一: r"string" ''' #coding:utf-8 string = "test\t\t123" # 转义字符 : \t print(string, "\n") string = r"test\t\t123" # r : 防止转义 print(s
        阅读全文
                
摘要:/* 时间:2020/10/25 目录: 一: json=dict 二: data=json.dumps(dict) 三: 总结 */ # 传递方法 : json=dict r = requests.post(url, json=dict, verify = False) POST https://
        阅读全文
                
摘要:### 格式化输出 #coding:utf-8 # 方法一 b = 20 c = "张三" d = "李四" str = "My name is %s" %c print(str) str_two = "My name is %s, age %s" %(d, b) print(str_two) # 
        阅读全文
                
摘要:/* 时间:2020/10/23 目录: 一: 中文 二: 英文 */ 一: 中文 二: 英文
        阅读全文
                
摘要:/* 时间:2020/10/23 功能:参数标记 目录: 一: 头部信息 二: 请求参数 三: 返回参数 */ 一: 头部信息 警告: import urllib3 urllib3.disable_warnings() # 忽略警告 二: 请求参数 请求: 1 get请求: requests.get
        阅读全文
                
摘要:/* 时间:2020/10/21 功能:类型转换 目录: 一: dict <-> json 二: dict <-> str 三: return 1 三种 2 json 四: 传参json */ 一: dict <-> json #coding:utf-8 import json dict = { "
        阅读全文
                
摘要:#coding:utf-8 dict = { "name" : "zhang_san", "age" : 24, "subject_list" : ("English", "Chinese", "Math"), "subject_content" : { 'English' : 88, "Chine
        阅读全文
                
摘要:# 数据类型 # 一般操作 #coding:utf-8 none = None # None print(none, type(none)) bool = False print(bool, type(bool)) int = 12 print(int, type(int)) float = 12.
        阅读全文
                
                    posted @ 2020-10-21 13:02  
火焰马
    
                
            
 
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号