会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Howhy Blogs
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
11
12
13
14
15
16
17
18
19
···
38
下一页
2020年6月18日
将pip源更换到国内镜像
摘要: 将pip源更换到国内镜像用pip管理工具安装库文件时,默认使用国外的源文件,因此在国内的下载速度会比较慢,可能只有50KB/s。幸好,国内的一些顶级科研机构已经给我们准备好了各种镜像,下载速度可达2MB/s。其中,比较常用的国内镜像包括: (1)阿里云 http://mirrors.aliyun.c
阅读全文
posted @ 2020-06-18 13:45 howhy
阅读(1572)
评论(0)
推荐(0)
2019年11月5日
css3 选择器
摘要: 类选择器 id选择器 元素选择器 伪类选择器 属性选择器 结构性选择器 逗号分隔的是或选择 空格分隔的是 层级选择 >分隔是父子级 + 紧挨着下个的兄弟元素 属性选择器 *[attr] 选择包含有attr属性的所有元素 [attr='val'] 选择包含有attr属性并且其属性值为val的所有元素
阅读全文
posted @ 2019-11-05 09:48 howhy
阅读(101)
评论(0)
推荐(0)
2019年10月12日
js 冒泡 捕获
摘要: <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title><
阅读全文
posted @ 2019-10-12 11:57 howhy
阅读(293)
评论(0)
推荐(0)
2018年9月11日
tornado ThreadPoolExecutor
摘要: import os import sys import time import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web import tornado.gen from tornado.concurrent import run_on_executor from con...
阅读全文
posted @ 2018-09-11 15:14 howhy
阅读(831)
评论(0)
推荐(0)
2018年9月4日
node.js
摘要: node是js运行环境 事件驱动型 异步非阻塞的
阅读全文
posted @ 2018-09-04 09:59 howhy
阅读(167)
评论(0)
推荐(0)
2018年3月19日
python fabric使用 http://fabric-chs.readthedocs.io/zh_CN/chs/tutorial.html
摘要: fab -u username -p password -H hostname -P -- cmd 或root@'hostname' -H多个主机是引号用逗号隔开 -P异步
阅读全文
posted @ 2018-03-19 17:37 howhy
阅读(221)
评论(0)
推荐(0)
python3带参数的装饰器 函数参数类型检查
摘要: from inspect import signature#python3才有的模块 def typeassert(*args,**kwargs): def decorator(fun): sig=signature(fun) btypes=sig.bind_partial(*args,**kwargs).arguments def wra...
阅读全文
posted @ 2018-03-19 14:12 howhy
阅读(1874)
评论(0)
推荐(0)
2018年3月17日
python 写文件
摘要: f=open("123.txt","w",buffering=2)#默认是按块全缓冲的可以buffer大于1 buffering=1 是按行缓冲 为0是无缓冲但与平台也有关系 f.wirte("123")# 此时只写了3个字节 tail -f 123.txt 看不到任何数据 f.write("*"*
阅读全文
posted @ 2018-03-17 11:21 howhy
阅读(202)
评论(0)
推荐(0)
python re.sub
摘要: str1="2017-10-15 this is happy day..." >>> re.sub("(\d{4})-(\d{2})-(\d{2})",r"\2/\3/\1",str1) ##'10/15/2017 this is happy day...' >>> re.sub("(?P\d{4})-(?P\d{2})-(?P\d{2})",r"\g/\g/\g",str1) #'10/15/...
阅读全文
posted @ 2018-03-17 09:50 howhy
阅读(129)
评论(0)
推荐(0)
2018年3月16日
python读取文件特定的行数
摘要: from itertools import islice f=open("pyhpd.txt") for a in islice(f,2,6): print(a)
阅读全文
posted @ 2018-03-16 16:40 howhy
阅读(7211)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
16
17
18
19
···
38
下一页
公告