随笔分类 -  python

摘要:实例1 import threading #线程 import time def Hi(num): print("线程总用时:%d sec --> start "%num) time.sleep(num) #等待时间 print("线程结束%d" % num) if __name__ == '__m 阅读全文
posted @ 2021-11-30 23:43 seven1986 阅读(31) 评论(0) 推荐(0) 编辑
摘要:****************************************with语句******************************************* with expression as target: with-body import os,sys os.chdir( 阅读全文
posted @ 2021-11-29 23:03 seven1986 阅读(25) 评论(0) 推荐(0) 编辑
摘要:python主程序 发送表单 import requests import json url = "http://10.65.6.102/api/environment/add" headers = { # 'content-type': "application/json", # 'Connect 阅读全文
posted @ 2021-10-12 20:16 seven1986 阅读(48) 评论(0) 推荐(0) 编辑
摘要:请求 # -*- coding: utf-8 -*- # @Time : 2021/9/17 14:00 # @Author : Hunk # @Email : seven922858@163.com # @Software: VScode import requests import json f 阅读全文
posted @ 2021-09-17 14:05 seven1986 阅读(32) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示