现在位置: 首页  >  编程技术
原创 php中文分词拓展
1、外置dll拓展 https://github.com/hightman/scws 2、分词类 https://github.com/feixuekeji/PHPAnalysis 源码有个问题,会多输出一行空行,对文件重新编辑了下,去除了多余的空行:PHPAnalysis.rar 3、未测试 https://github.com/lizhic...
转载 修改文件创建时间、修改时间、访问时间
from win32file import CreateFile, SetFileTime, GetFileTime, CloseHandle from win32file import GENERIC_READ, GENERIC_WRITE, OPEN_EXISTING from pywintypes import Time  # 可以忽视这个 ...
原创 esp32+毫米波雷达+4G模块,房屋内人体检测,长时间无人活动则向服务器发送警报
from machine import Pin import time from machine import UART for i in range(5):     print('启动中...' + str((i+1)/5*100) + '%')     time.sleep(1) uart = UART(2, 115200...
转载 人工智能技术科普讲解
https://www.captainbed.net/blog-neo/
原创 esp32通过4g模块联网
import time from machine import UART uart = UART(2, 115200) # 在web后台配置网络通道 # 读取imei uart.write("config,get,imei\r\n")  # 读取imei time.sleep(0.5) data=uart.read() ...
原创 esp32使用74HC595芯片输出串行信号
from machine import Pin import time # 输出存储器锁存时钟线 ST_CP = Pin(21, Pin.OUT) # 数据输入时钟线 SH_CP = Pin(22, Pin.OUT) # 串行数据输入 DS = Pin(5, Pin.OUT) data=[1,0,0,0,1,1,0,...
原创 esp32使用74HC165芯片读取外部并行信号
import machine from machine import Pin import utime CP = Pin(12, Pin.OUT) CE = Pin(13, Pin.OUT) PL = Pin(14, Pin.OUT) Q7 = Pin(15, Pin.IN) data=[] p18=Pin(18, P...
原创 micropython+esp32,mqtt通信demo
mqtt示例.rar
原创 paho-mqtt,mqtt客户端使用demo
pip install paho-mqtt import paho.mqtt.client as mqtt def on_connect(client, userdata, flags, rc):     print("Connected with result code "+str(rc))     # client.subscribe(...
原创 使用docker时用到的命令
启动docker服务 service docker start 【镜像操作】 下载镜像 docker pull centos:7 查看镜像 docker images 运行镜像(使用最高权限) docker run -d -i -t -p 112.127.126.88:8888:8888 -p 112.127.126.88:82:82 -p 11...
 站内搜索