上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 74 下一页
摘要: from pymouse import PyMouse m = PyMouse() a = m.position() #获取当前坐标的位置 print(a) m.move(50, 500) #鼠标移动到(x,y)位置 a = m.position() print(a) m.click(50, 50) 阅读全文
posted @ 2018-04-26 20:45 Dsp Tian 阅读(9335) 评论(0) 推荐(0) 编辑
摘要: 这里我用的空间是x向右为正,y向下为正,z向屏幕里面为正。相当于标准右手系绕x轴旋转了180度。 将三个点光源放在 r = [0.3,0,0.5];g = [0.3,-0.5*cos(pi/6),-0.5*sin(pi/6)];b = [0.3,0.5*cos(pi/6),-0.5*sin(pi/6 阅读全文
posted @ 2018-04-25 21:39 Dsp Tian 阅读(1876) 评论(0) 推荐(0) 编辑
摘要: '''python3读取excle数据''' import xlrd workbook = xlrd.open_workbook(r'test.xls', encoding_override='gbk') print(workbook.sheet_names()) sheet = workbook.sheet_by_name('Sheet 1') print(sheet.nrows, shee... 阅读全文
posted @ 2018-04-22 09:42 Dsp Tian 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/sanoseiichirou/article/details/50180533 C++标准文档——n2347(学习笔记) 链接:http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2347 阅读全文
posted @ 2018-04-13 13:12 Dsp Tian 阅读(909) 评论(0) 推荐(0) 编辑
摘要: 原文:https://blog.csdn.net/u011822862/article/details/52166940 Qt 官方开发环境使用的动态链接库方式,在发布生成的可执行程序时,需要复制可执行程序的依赖库,如果自己去复制依赖库,可能会遗漏,导致可执行程序在别的电脑里无法正常运行,因此 Qt 阅读全文
posted @ 2018-03-28 09:38 Dsp Tian 阅读(698) 评论(0) 推荐(0) 编辑
摘要: python.txt是百度百科上的一段: 生成的图片如下: 阅读全文
posted @ 2018-03-24 09:24 Dsp Tian 阅读(5846) 评论(0) 推荐(1) 编辑
摘要: 对所使用的字符串类型调用encode()方法进行转换即可 阅读全文
posted @ 2018-03-04 11:36 Dsp Tian 阅读(875) 评论(0) 推荐(0) 编辑
摘要: import zlib import os ss = 's' * 1024 * 1024 #写入原始文件 file = open("src.dat", "wb") file.write(ss.encode()) file.close() #读取上一步原始的文件 file = open("src.dat", "rb") sss = file.read(os.path.getsize("... 阅读全文
posted @ 2018-03-04 11:36 Dsp Tian 阅读(531) 评论(0) 推荐(0) 编辑
摘要: import cv2 img = cv2.imread("lena.jpg") cv2.namedWindow("Image") cv2.imshow("Image", img) cv2.waitKey(0) cv2.destroyAllWindows() 阅读全文
posted @ 2018-03-04 11:35 Dsp Tian 阅读(493) 评论(0) 推荐(0) 编辑
摘要: import sqlite3 from datetime import datetime conn = sqlite3.connect('data.db') print("Opened database successfully") for i in range(100): time = datetime.now() conn.execute("INSERT INTO t... 阅读全文
posted @ 2018-03-04 11:35 Dsp Tian 阅读(635) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 74 下一页