上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 68 下一页
摘要: python3 在使用网上找到的一些使用剪切板的片段时发现存在写入剪切板后乱码的情况, 研究后发现python3不能使用SetClipboardData方法, 要使用SetClipboardText 阅读全文
posted @ 2019-02-11 19:43 anobscureretreat 阅读(9768) 评论(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)
摘要: 方法一 方法二 方法三 阅读全文
posted @ 2019-02-11 18:28 anobscureretreat 阅读(6208) 评论(0) 推荐(0)
摘要: 使用body操作 阅读全文
posted @ 2019-02-11 17:31 anobscureretreat 阅读(493) 评论(0) 推荐(0)
摘要: 需事先打开记事本,再运行下面脚本 阅读全文
posted @ 2019-02-11 16:57 anobscureretreat 阅读(2858) 评论(0) 推荐(0)
摘要: pip install pywin32 阅读全文
posted @ 2019-02-11 15:25 anobscureretreat 阅读(6121) 评论(0) 推荐(0)
摘要: //创建分支 //创建并切换到新分支 //远程分支 //查看远程分支 //删除本地分支 //删除远程分支 阅读全文
posted @ 2019-02-11 11:26 anobscureretreat 阅读(223) 评论(0) 推荐(0)
摘要: 列出现有标签(或者使用git tag -l) 如果只对 1.4.2 系列的版本感兴趣 创建一个含附注类型的标签 查看相应标签的版本信息,并连同显示打标签时的提交对象 后期加注标签 我们忘了在提交 “updated rakefile” 后为此项目打上版本号 v1.2,没关系,现在也能做。只要在打标签的 阅读全文
posted @ 2019-02-11 11:17 anobscureretreat 阅读(221) 评论(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 阅读(310) 评论(0) 推荐(0)
摘要: http://phantomjs.org/download.html 阅读全文
posted @ 2019-02-09 18:16 anobscureretreat 阅读(110) 评论(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)
摘要: from selenium import webdriveroptions = webdriver.ChromeOptions()options.add_experimental_option("excludeSwitches",["ignore-certificate-errors"])drive 阅读全文
posted @ 2019-02-09 18:13 anobscureretreat 阅读(868) 评论(0) 推荐(0)
摘要: 解压后,把路径放到系统环境变量中即可 阅读全文
posted @ 2019-02-09 18:12 anobscureretreat 阅读(163) 评论(0) 推荐(0)
摘要: demo1 输出 阅读全文
posted @ 2019-02-09 17:08 anobscureretreat 阅读(259) 评论(0) 推荐(0)
摘要: demo1 输出 demo2 输出 demo3 输出 阅读全文
posted @ 2019-02-09 16:04 anobscureretreat 阅读(303) 评论(0) 推荐(0)
摘要: demo1 输出 demo2 输出 demo3 输出 阅读全文
posted @ 2019-02-09 15:49 anobscureretreat 阅读(162) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-02-09 15:28 anobscureretreat 阅读(452) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-02-09 15:14 anobscureretreat 阅读(197) 评论(0) 推荐(0)
摘要: 执行 阅读全文
posted @ 2019-02-09 15:08 anobscureretreat 阅读(840) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-02-09 14:56 anobscureretreat 阅读(307) 评论(0) 推荐(0)
摘要: 显示磁盘使用情况 以inode模式来显示磁盘使用情况 显示指定类型磁盘 列出各文件系统的i节点使用情况 列出文件系统的类型 以更易读的方式显示目前磁盘空间和使用情况 只显示本地文件系统 阅读全文
posted @ 2019-02-01 14:53 anobscureretreat 阅读(1342) 评论(0) 推荐(0)
摘要: 命令参数: -a或-all 显示目录中个别文件的大小。 -b或-bytes 显示目录或文件大小时,以byte为单位。 -c或--total 除了显示个别目录或文件的大小外,同时也显示所有目录或文件的总和。 -k或--kilobytes 以KB(1024bytes)为单位输出。 -m或--megaby 阅读全文
posted @ 2019-02-01 14:44 anobscureretreat 阅读(2203) 评论(0) 推荐(0)
摘要: 创建一个组users,其GID为888 创建用户组 删除组 修改组名user为users 查看新添加的用户组 创建用户user1的时候指定其所属工作组为users 创建user2,指定有效期2009-12-30到期 创建用户并且指定uid 为用户user1设置密码 创建用户 将用户 user1的登录 阅读全文
posted @ 2019-02-01 14:09 anobscureretreat 阅读(474) 评论(0) 推荐(0)
摘要: ping 192.168.0.1 -c4 阅读全文
posted @ 2019-02-01 13:57 anobscureretreat 阅读(5888) 评论(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 阅读(390) 评论(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. 输出 阅读全文
posted @ 2019-01-29 12:21 anobscureretreat 阅读(240) 评论(0) 推荐(0)
摘要: from flask import Flask, jsonify from flask import abort from flask import make_response from flask import request from flask_httpauth import HTTPBasicAuth from flask import url_for auth = HTTPBasi... 阅读全文
posted @ 2019-01-29 11:49 anobscureretreat 阅读(270) 评论(0) 推荐(0)
摘要: 1. 输出 2. 输出 阅读全文
posted @ 2019-01-29 11:26 anobscureretreat 阅读(160) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-01-29 11:24 anobscureretreat 阅读(121) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-01-29 11:06 anobscureretreat 阅读(183) 评论(0) 推荐(0)
摘要: 1. 输出 2. 输出 阅读全文
posted @ 2019-01-29 11:03 anobscureretreat 阅读(124) 评论(0) 推荐(0)
摘要: 经过搜索查找,发现错误原因是我在win7 x64的机器上装了64位的python IDLE,不能有效load32位的dll,换成32位的python就好了。 阅读全文
posted @ 2019-01-28 13:46 anobscureretreat 阅读(7852) 评论(0) 推荐(0)
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 68 下一页