从零配置dlib(GPU) ? Written by Aquish 参考: [ win10+anaconda+cuda配置dlib ] [ 记一次Win10环境python3.7安装dlib模块趟过的坑 ] [ win10系统python下实现dlib的GPU加速 ] 写在前面 配环境真的是一件考验 ...
分类:
其他好文 时间:
2020-06-05 21:00:07
阅读次数:
133
#!/user/bin/python3# -*- coding: utf-8 -*-# @Time : 2020/6/5 11:40# @Author :Test_zhangping# @Email :981874735@qq.com# @File :class_python函数.py# 三步函数法 ...
分类:
编程语言 时间:
2020-06-05 16:43:34
阅读次数:
89
startTime = time.clock()AttributeError: module 'time' has no attribute 'clock python 报错! AttributeError module 'time' has no attribute 'clock' python3... ...
分类:
其他好文 时间:
2020-06-05 12:49:10
阅读次数:
184
克隆项目代码和初始流程分析 https://gitee.com/jackfrued/zufang 把别人的项目添加到自己的仓库 git clone --depth SSH地址 克隆此项目的最新版本 python3.6安装 > https://www.cnblogs.com/aidenzdly/p/1 ...
分类:
其他好文 时间:
2020-06-05 01:01:11
阅读次数:
86
虚拟环境 python3 创建虚拟环境 python3 -m venv name 在当前目录下生成一个文件夹 source name/bin/activate 进入虚拟环境 deactivate 退出虚拟环境 python2 管理虚拟环境 pip install virtualenv -i http ...
分类:
系统相关 时间:
2020-06-05 00:46:04
阅读次数:
75
更换电脑后,虽然都是直接把以前的包直接拷贝到新电脑上的,但是python3中无法导入appium:“Cannot set up a python SDK”,如下: 打开Pycharm→file→settings→project interpreter; 发现没有配置,也找不到python 选择一下: ...
分类:
移动开发 时间:
2020-06-04 15:32:48
阅读次数:
317
python2使用MySQLdb模块进行连接mysql数据库进行操作;python3则使用pymysql模块进行连接mysql数据库进行操作;两者在语法上有稍微的差别,其中就包括查询结果包含字段名,具体例子如下: python2: import MySQLdb conn = MySQLdb.conn ...
分类:
数据库 时间:
2020-06-04 10:26:53
阅读次数:
139
偶然间阅读资料发现Linux发行版内置了英语词典,随手用Python写个小程序进行词语接龙 **规则:**用户给出第一个词,系统根据结尾随机给出一个相同开头的词,如此反复 用户词不得重复,单词表中也不含缩写符号的词 代码如下 #!/usr/bin/python3 from random import ...
分类:
微信 时间:
2020-06-04 01:47:00
阅读次数:
115
https://python3-cookbook.readthedocs.io/zh_CN/latest/c02/p10_work_with_unicode_in_regexp.html import re num = re.compile('\d+') print(num.match('123') ...
分类:
其他好文 时间:
2020-06-03 20:17:54
阅读次数:
67
第一步,下载python3,之后安装在默认路径下,安装的时候吧环境变量添加。 第二部,执行命令 pip install Jupyter,等待安装完毕 第三部,启动Jupyter,启动命令:jupyter notebook。网页自动启动 之后即可执行Python的程序 如果安装其他的包文件,同样执行命 ...
分类:
编程语言 时间:
2020-06-03 18:48:33
阅读次数:
81