2020年2月13日

form标签的使用

摘要: <!DOCTYPE html><html><head> <title>form的使用方法</title></head><body> <form action="http://www.baidu.com" method="post"> <p> <label for="username">用户名</la 阅读全文

posted @ 2020-02-13 17:16 别离 阅读(344) 评论(0) 推荐(0) 编辑

form标签的使用法

摘要: form的使用方法 用户名 密码 男: 女: 课程选择 web前段: python全栈: Java全栈: php语言: 下拉框实现单选 下拉框实现多选 个人简述 按钮 阅读全文

posted @ 2020-02-13 16:40 别离 阅读(150) 评论(0) 推荐(0) 编辑

img标签的使用方法

摘要: <!DOCTYPE html><html><head> <title>img标签</title></head><body> <img src="images/1.jpg" width="300" height="500" alt="老代吃屎" title="你那损样"> <img src="http 阅读全文

posted @ 2020-02-13 12:20 别离 阅读(1395) 评论(0) 推荐(0) 编辑

<a></a>标签的使用

摘要: 1.如何建立超链接 <!DOCTYPE html><html><head> <title>超链接</title></head><p id='top'></p> 建立一个空标签,设置一个唯一的id<body> <a href="http://www.baidu.com" title="百度一下,你就知 阅读全文

posted @ 2020-02-13 10:54 别离 阅读(1469) 评论(0) 推荐(0) 编辑

2020年2月12日

html的标签

摘要: <p></p> 段落标签<hr /> 网页分割线<strong></strong> 自由加粗字体 斜字体 &nbsp; 空格 <tittle></title>网页标签 <head></head>网页标头网页主体内容</p><h1></h1> h1 - h6 为加大加粗字体 <a href = '要跳 阅读全文

posted @ 2020-02-12 15:07 别离 阅读(96) 评论(0) 推荐(0) 编辑

2019年10月7日

进程池线程池小练习.py

摘要: from concurrent.futures import ThreadPoolExecutor import requests, time def get(url): print('GET %s'%url) resposn = requests.get(url) time.sleep(3) return {'url':url, 'content':resposn.text} def parse 阅读全文

posted @ 2019-10-07 20:48 别离 阅读(178) 评论(0) 推荐(0) 编辑

异步调用与回调机制

摘要: # 提交任务的俩方式 #1,同步调用:提交完任务,在原地等待任务执行完毕,拿到结果,再执行下一段代码,导致程序串行执行 import time, random from concurrent.futures import ThreadPoolExecutor def la(name): print('%s 在拉屎!'%name) time.sleep(random.randi... 阅读全文

posted @ 2019-10-07 19:28 别离 阅读(362) 评论(0) 推荐(0) 编辑

2019年10月5日

进程池和线程池

摘要: #开启进程池的方式from concurrent.futures import ProcessPoolExecutor,ThreadPoolExecutorimport os,time,randomdef task(name): print('name:%s pid:%s'%(name, os.ge 阅读全文

posted @ 2019-10-05 20:14 别离 阅读(345) 评论(0) 推荐(0) 编辑

2019年10月2日

多线程实现并发套接字通讯

摘要: 服务端: 阅读全文

posted @ 2019-10-02 07:02 别离 阅读(358) 评论(0) 推荐(0) 编辑

2019年10月1日

线程queue

摘要: import queueq = queue.Queue(3) #先进先出:队列q.put('老王')q.put(2)q.put('王八')print(q.get())q.put(4, block=False, timeout=3)'''timeout可以设置等待几秒,block = False等于非 阅读全文

posted @ 2019-10-01 20:48 别离 阅读(114) 评论(0) 推荐(0) 编辑

导航