随笔分类 -  python

上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 48 下一页
摘要:from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionCh... 阅读全文
posted @ 2019-02-11 21:08 anobscureretreat 阅读(4565) 评论(0) 推荐(0)
摘要:from pymouse import PyMouse mouse = PyMouse() mouse.click(220,330) 阅读全文
posted @ 2019-02-11 21:02 anobscureretreat 阅读(1040) 评论(0) 推荐(0)
摘要:输出 阅读全文
posted @ 2019-02-11 20:59 anobscureretreat 阅读(612) 评论(5) 推荐(0)
摘要:# -*- coding:UTF-8 -*- #!/user/bin/env python ''' Created on 2010-9-1 @author: chenzehe ''' import win32com.client from time import sleep loginurl='http://passport.cnblogs.com/login.aspx' loginoutu... 阅读全文
posted @ 2019-02-11 20:39 anobscureretreat 阅读(1026) 评论(0) 推荐(0)
摘要:python3 在使用网上找到的一些使用剪切板的片段时发现存在写入剪切板后乱码的情况, 研究后发现python3不能使用SetClipboardData方法, 要使用SetClipboardText 阅读全文
posted @ 2019-02-11 19:43 anobscureretreat 阅读(9770) 评论(0) 推荐(0)
摘要:import yaml with open("a.yaml") as f: with open("a.yaml") as k: while(1): x=f.readline() if(x): if(x==k.readline()): pass ... 阅读全文
posted @ 2019-02-11 19:39 anobscureretreat 阅读(1083) 评论(2) 推荐(0)
摘要:pymouse安装后,又出现了ModuleNotFoundError: No module named 'windows'的错误 解决: 下载安装pyhook:http://www.lfd.uci.edu/~gohlke/pythonlibs/ ctrl+f 查找 安装 安装成功后,再安装 运行文件 阅读全文
posted @ 2019-02-11 19:02 anobscureretreat 阅读(3970) 评论(0) 推荐(1)
摘要:pip install pymouse 阅读全文
posted @ 2019-02-11 18:53 anobscureretreat 阅读(524) 评论(0) 推荐(0)
摘要:使用body操作 阅读全文
posted @ 2019-02-11 17:31 anobscureretreat 阅读(493) 评论(0) 推荐(0)
摘要:需事先打开记事本,再运行下面脚本 阅读全文
posted @ 2019-02-11 16:57 anobscureretreat 阅读(2859) 评论(0) 推荐(0)
摘要:pip install pywin32 阅读全文
posted @ 2019-02-11 15:25 anobscureretreat 阅读(6121) 评论(0) 推荐(0)
摘要:安装 我们使用的是Image中的crop(box)功能,它需要一个参数box,元组 类型,元组包括4个元素,(距离图片左边界距离x, 距离图片上边界距离y,距离图片左边界距离+裁剪框宽度x+w,距离图片上边界距离+裁剪框高度y+h) (x, y, x+w, y+h), x,y是裁剪框左上角的坐标, 阅读全文
posted @ 2019-02-09 23:56 anobscureretreat 阅读(311) 评论(0) 推荐(0)
摘要:系统环境: 64位win10系统,同时安装python2.7与python3.6两个版本 安装: PIL是Python平台事实上的图像处理标准库,支持多种格式,并提供强大的图形与图像处理功能。目前PIL的官方最新版本为1.1.7,支持的版本为python 2.5, 2.6, 2.7,并不支持pyth 阅读全文
posted @ 2019-02-09 18:15 anobscureretreat 阅读(4688) 评论(0) 推荐(0)
摘要:xxx@ddd:~$ mkdir testa testb >>> import shutil >>> shutil.move("/home/xxx/testa","/home/xxx/testb") >>> exit() xxx@ddd:~$ ls testb testa 阅读全文
posted @ 2019-01-30 12:16 anobscureretreat 阅读(1047) 评论(0) 推荐(0)
摘要:只能删除空文件夹,删除非空文件夹会报错 经测试下面的方法,可以删除非空文件夹,(#空目录、有内容的目录都可以删) 这里只删除了 ssh-GyoPWOFZ47 文件夹 阅读全文
posted @ 2019-01-30 11:23 anobscureretreat 阅读(4998) 评论(0) 推荐(0)
摘要:remove 只能删除文件,删除目录会报错 阅读全文
posted @ 2019-01-30 11:21 anobscureretreat 阅读(391) 评论(0) 推荐(0)
摘要:输出 阅读全文
posted @ 2019-01-29 17:46 anobscureretreat 阅读(481) 评论(0) 推荐(0)
摘要:使用绝对目录: 阅读全文
posted @ 2019-01-29 17:13 anobscureretreat 阅读(436) 评论(0) 推荐(0)
摘要:输出 阅读全文
posted @ 2019-01-29 12:33 anobscureretreat 阅读(301) 评论(0) 推荐(0)
摘要:输出 阅读全文
posted @ 2019-01-29 12:25 anobscureretreat 阅读(317) 评论(0) 推荐(0)

上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 48 下一页