该文被密码保护。 阅读全文
posted @ 2020-08-31 22:02 萧海~ 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-08-31 21:59 萧海~ 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-08-30 22:42 萧海~ 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-08-30 22:15 萧海~ 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-08-30 20:49 萧海~ 阅读(0) 评论(0) 推荐(0) 编辑
摘要: Python 简单使用QMediaPlayer,QSoundEffect,QAudioOutput from PyQt5 import QtCore, QtMultimedia, QtGuiimport PyQt5(1)适合于mp4,mp3 if __name__=="__main__": app 阅读全文
posted @ 2020-08-30 19:52 萧海~ 阅读(1639) 评论(0) 推荐(0) 编辑
摘要: Python classmethod 修饰符简单使用 class A(object): value = 1 def func1(self): print('func1') @classmethod def func2(cls): print('func2') print(cls.value) cls 阅读全文
posted @ 2020-08-30 19:42 萧海~ 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Python获取当前时间及格式化import time # 打印时间戳print(time.time())# 格式化时间戳为本地的时间print(time.localtime(time.time()))# 优化格式化化版本print(time.strftime('%Y-%m-%d %H:%M:%S' 阅读全文
posted @ 2020-08-30 13:28 萧海~ 阅读(1143) 评论(0) 推荐(0) 编辑
摘要: python sqlite3简单操作(原创)import sqlite3class CsqliteTable: def __init__(self): pass def linkSqlite3(self): self.conn = sqlite3.connect('./data/xiaohai.db 阅读全文
posted @ 2020-08-29 22:31 萧海~ 阅读(568) 评论(0) 推荐(0) 编辑
摘要: python+opencv 打开网络摄像头(手机)(转) #以下是最常用的读取视频流的方法import cv2url = 'rtsp://admin:admin@192.169.5.2:554/'#根据摄像头设置IP及rtsp端口 @前面是账号和密码cap = cv2.VideoCapture(ur 阅读全文
posted @ 2020-08-29 15:56 萧海~ 阅读(1876) 评论(0) 推荐(0) 编辑