随笔分类 - python
摘要:实例1 import threading #线程 import time def Hi(num): print("线程总用时:%d sec --> start "%num) time.sleep(num) #等待时间 print("线程结束%d" % num) if __name__ == '__m
阅读全文
摘要:****************************************with语句******************************************* with expression as target: with-body import os,sys os.chdir(
阅读全文
摘要:python主程序 发送表单 import requests import json url = "http://10.65.6.102/api/environment/add" headers = { # 'content-type': "application/json", # 'Connect
阅读全文
摘要:请求 # -*- coding: utf-8 -*- # @Time : 2021/9/17 14:00 # @Author : Hunk # @Email : seven922858@163.com # @Software: VScode import requests import json f
阅读全文