Python
GlassyBug
这个作者很懒,什么都没留下…
展开
-
有趣的编程技巧--Python语言
有趣的编程技巧--Python语言原创 2017-12-09 01:21:02 · 293 阅读 · 0 评论 -
Spark的坑--Spark新手必看--Python Spark必读,耗费了我近三周的时间
from pyspark import SparkContext, SparkConfimport osfrom tqdm import tqdmfrom utils2 import convert_date_2_chenyings_formatos.environ['HADOOP_HOME'] = 'D:\software\spark\winutils\hadoop-common-2...原创 2019-04-17 19:03:41 · 1142 阅读 · 0 评论 -
python判断字符是否为中文
[’\u4e00’ <= w <= ‘\u9fff’ for w in sen]原创 2019-03-31 23:51:54 · 1032 阅读 · 0 评论 -
Mac用Pip3安装错误 -- OpenSSL错误
方案一:更改镜像没有 ~/.pip/pip.conf 时cd ~/mkdir .piptouch pip.conf以下为镜像,将镜像内容写入pip.conf:阿里云 镜像:[global]index-url = http://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.com清华大学...原创 2019-02-25 11:22:27 · 933 阅读 · 0 评论 -
Python编程:URL网址链接中的中文编码与解码
网址链接中的中文编码中文的gbk(GB2312)编码: 一个汉字对应两组%xx,即%xx%xx中文的UTF-8编码: 一个汉字对应三组%xx,即%xx%xx%xx可以利用百度进行URL编码解码 默认gbkpython3编码解码示例# -*- coding: utf-8 -*-# @File : urldecode_demo.py# @Date : 2018-05-1...转载 2018-11-16 22:44:02 · 1395 阅读 · 1 评论 -
Python装饰器 -- 快捷源码
import functoolsdef decorator_name(text): def decorator(func): @functools.wraps(func) def wrapper(*args, **kw): print('%s %s():' % (text, func.__name__)) # Operation...原创 2018-08-10 23:20:51 · 186 阅读 · 0 评论 -
Python 安装库 -- pip3手动安装
地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/用法: 1.打开网址后,CTRL+F 搜索期望的库名 2.点击链接后,下载对应系统环境的.whl 3.运行命令:pip3 install 绝对路径.whl...原创 2018-07-16 14:15:38 · 2510 阅读 · 0 评论 -
Python不识别中文解决方法
string = string.encode(‘utf-8’)原创 2018-01-09 07:15:29 · 12401 阅读 · 1 评论 -
Python实用模块
请参考: 实用模块参考文件操作: 原生模块: open()数组:numpy SciPy–使用NumPy来做高等数学、信号处理、优化、统计和许多其它科学任务的语言扩展机器学习:tensorflow,cafe网页操作: 1.webbrowser api: webbrowser.open(url)->用默认浏览器打开url2.强大的网页 测试/操作 模块原创 2017-12-26 22:46:52 · 296 阅读 · 0 评论 -
urllib3 -- Python
urllib3数据流原创 2017-12-26 23:49:21 · 226 阅读 · 0 评论 -
BeautifulSoup--Python
解析器原创 2017-12-26 23:38:07 · 135 阅读 · 0 评论 -
PermissionError--pip错误--Python 解决方法
pip install --user package_name原创 2018-01-11 05:30:47 · 550 阅读 · 0 评论 -
[:]--Python
[:]原创 2017-12-17 22:02:08 · 230 阅读 · 0 评论 -
极简Tensorflow API速查--Python语言
极简Tensorflow API速查–Python语言原创 2017-12-08 08:01:38 · 309 阅读 · 0 评论 -
极简服务器--Python
极简服务器-Python原创 2017-12-16 22:29:07 · 235 阅读 · 0 评论 -
Python 全局变量
Python 全局变量原创 2017-12-24 18:35:42 · 193 阅读 · 0 评论 -
Python 多线程
Python 多线程原创 2017-12-24 18:33:52 · 216 阅读 · 0 评论 -
Python运行不显示DOS窗口方法
Python运行时不显示DOS方法转载 2017-12-22 06:18:28 · 17484 阅读 · 0 评论 -
【OpenCV3】级联分类器训练——traincascade快速使用详解
https://blog.csdn.net/guduruyu/article/details/70183372转载 2019-05-28 15:56:40 · 725 阅读 · 0 评论