随笔分类 - Python
摘要:x = 'HDCF\xc3\x82\xc2\xae FTAE\xc3\x82\xc2\xae Greater China'print(x.encode("ascii","ignore").decode("utf-8"))
阅读全文
摘要:python版本 3.7.0 1、 安装 cmake pip install cmake 2、安装 boost pip install boost 3、安装 dlib pip install dlib 4、安装 face_recognition pip install face_recognitio
阅读全文
摘要:
阅读全文
摘要:import urllib.request import urllib.parse import json proxy_support = urllib.request.ProxyHandler({'http':'http://10.3.246.5:8500'}) opener = urllib.request.build_opener(proxy_support, urllib.reques...
阅读全文
摘要:It is possible that pip does not get installed by default. One potential fix is: python -m ensurepip --default-pip
阅读全文
摘要:To perform object detection using ImageAI, all you need to do is 3. Download the Object Detection model file 4. Run the sample codes (which is as few
阅读全文
摘要:没什么好说的,直接送包 https://github.com/mouuff/mtranslate
阅读全文
摘要:一、介绍 requests是Python的一个HTTP客户端库,跟urllib,urllib2类似,不过requests的优势在于使用简单,相同一个功能,用requests实现起来代码量要少很多。毕竟官方文档都很直白的说: python的标准库urllib2提供了大部分需要的HTTP功能,但是API
阅读全文
摘要:总结远程连接树莓派的三种方式,对大部分linux系统同样适用。 首先需要将树莓派连接上网,ifconfig记录ip地址。 第一种:ssh远程连接 在linux下使用 ssh root@10.107.16.69 可以登录。在windows下使用putty这个工具,下载地址文末。 操作如图。 ***Op
阅读全文
摘要:连接数据库 pymssql连接数据库的方式和使用sqlite的方式基本相同: 使用connect创建连接对象 connect.cursor创建游标对象,SQL语句的执行基本都在游标上进行 cursor.executeXXX方法执行SQL语句,cursor.fetchXXX获取查询结果等 调用clos
阅读全文
摘要:工具 树莓派3 modelB 一个 dht11温湿度传感器一个 onenet平台 安装好requests库的python(一定要安装好不然代码不能正确运行,可以参考我的另一篇博文点击打开链接) 树莓派连接温度传感器 将树莓派连接好温度传感器,并且得到数据,首先要运行代码,将传感器测得的温湿度数据分别
阅读全文

浙公网安备 33010602011771号