自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

alantop's blog

专注于量化交易

  • 博客(10)
  • 资源 (1)
  • 收藏
  • 关注

原创 hid读写示例

https://github.com/signal11/hidapi/blob/master/windows/hid.c

2018-05-31 19:27:21 1080

原创 centos 7.0 samba配置文件

[global] workgroup = SAMBA security = user passdb backend = tdbsam printing = cups printcap name = cups load printers = yes cups options = raw ...

2018-05-29 13:04:45 165

原创 python3 从文件中搜索包含字符串的行

import codecsFileName = r'c:\ls\1'#KeyStr = input("the key string: ")KeyStr = '<dd class="info"><span>执业证号:'FoundFlag = False#用utf-8格式打开文件FileObj = codecs.open(FileName, 'r', 'utf-8')L...

2018-05-23 15:11:59 4393

原创 python3 从后台激活到前台 截图

如果是最小化激活到前台,不是下面的代码,下面代码仅是从后台激活到前台 wrHd=win32gui.FindWindow(u'#32770',u'TeamViewer') print(win32gui.SetForegroundWindow(wrHd)) from PIL import ImageGrab bbox = (0, 0, 1160, 500) ...

2018-05-19 13:12:01 696

原创 python3 检测进程是否存在

pip install pywin32import win32com.client def check_exsit(process_name): WMI = win32com.client.GetObject('winmgmts:') processCodeCov = WMI.ExecQuery('select * from Win32_Process where...

2018-05-19 12:06:40 1955

原创 notepad++ 配置python

点击“运行”,键入cmd/kpython"$(FULL_CURRENT_PATH)"&ECHO.&PAUSE&EXIT 设置名称,设置快捷方式 ctrl+shift+F5

2018-05-18 20:41:20 152

原创 python3如何打开关闭CapsLock

pip install pywin32import win32apiimport win32con#win32api.keybd_event(20,0,win32con.WM_KEYDOWN,0)#win32api.keybd_event(20,0,win32con.WM_KEYUP,0)#win32api.keybd_event(17,0,win32con.KEYEV...

2018-05-16 18:17:30 515

原创 python3 操作oracle数据库

安装配置1.下载oracle客户端(客户端官方下载,安装方式选管理员方式),配置 "本地网络服务配置名"。 服务名不知道的,服务器端可以用sql语句查询。oracle客户端下载网址:http://www.oracle.com/technetwork/cn/database/enterprise-edition/downloads/index.html客户端安装好即可,无...

2018-05-08 13:13:49 507

原创 python3 连接mysql数据库

import pymysqlconn = pymysql.connect(host='10.2.3.5', port=3306, user='root', passwd='',db='mydata',charset='utf8')cur = conn.cursor()cur.execute("SELECT * FROM bankbase")for r in cur.fetchall(): ...

2018-05-08 13:12:57 69

原创 oracle11g 客户端配置

本地net服务名配置查询服务名:select global_name from global_name;sqlplus tiger/[email protected]:1521/orcl

2018-05-07 16:20:33 248

arcgis 授权文件

arcigs 9.2授权文件.arcgis是领先的gis 平台供应商!

2011-07-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除