随笔分类 -  Python

学习Python笔记
摘要:""" rename files """# --*-- encoding:utf-8 --*-- import os Number = 0newnames = [] def rnfiles(path=None): global Number filesname = os.listdir(path) 阅读全文
posted @ 2016-11-28 17:15 sukekes 阅读(441) 评论(0) 推荐(0)
摘要:最近在用appium做自动化时发现,有一些元素无法通过uiautomatorviewer进行定位,这样就只能通过相对坐标来进行定位了。但是,问题又来了:如何获取元素的坐标呢? 在网上找了半天也没找到相应的解决方法,后来在testerhome一篇文章中看到打开手机指针位置来确定元素所在坐标。具体方法: 阅读全文
posted @ 2016-01-28 19:14 sukekes 阅读(7208) 评论(3) 推荐(0)
摘要:pytesser使用 阅读全文
posted @ 2014-11-19 10:58 sukekes 阅读(949) 评论(0) 推荐(0)
摘要:TypeError: 'str' does not support the buffer interface 阅读全文
posted @ 2014-10-10 10:49 sukekes 阅读(1866) 评论(0) 推荐(0)
摘要:from sys import argvinput(argv)#python自带的IDLE直接执行不能提供命令行参数script,first,second,third=argvprint("The script is called:",script)print("Your first variabl... 阅读全文
posted @ 2014-09-20 13:39 sukekes 阅读(2013) 评论(0) 推荐(0)