自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 python webdriver实现自动化

firefox 47以上版本,需要下载第三方driver,即geckodriver;在http://docs.seleniumhq.org/download/的Third Party Drivers, Bindings, and Plugins下面找到Mozilla GeckoDriver,下载到任意电脑任意目录,解压后将该路径加入到PC的path(针对windows)即可。ubu

2017-04-25 10:27:55 559 2

原创 怎样把firefox从53版本降低到49版本

问题的起因是:高通qcap网站需要java插件,但高版本的firefox:50以后不支持java插件1.查看firfore的版本网页上方:open menu/ customize/?2.  卸载sudo apt-get remove firefox3. 用于32位操作系统wget https://download-installer.

2017-04-25 08:55:00 13131 2

转载 python时间,日期,时间戳处理

1.将字符串的时间转换为时间戳    方法:        a = "2013-10-10 23:40:00"        将其转换为时间数组        import time        timeArray = time.strptime(a, "%Y-%m-%d %H:%M:%S") 转换为时间戳: timeStamp = int(time.mktime(timeArra

2017-04-19 16:25:21 661

原创 有关IMEI

国际移动设备识别码(International Mobile Equipment Identity,IMEI),即通常所说的手机序列号、手机“串号”,用于在移动电话网络中识别每一部独立的手机等行动通讯装置,相当于移动电话的身份证。序列号共有15位数字,前6位(TAC)是型号核准号码,代表手机类型。接着2位(FAC)是最后装配号,代表产地。后6位(SNR)是串号,代表生产顺序号。最后1位(SP)

2017-04-17 09:35:30 818

原创 python 使用shell 命令

>>> import commands>>> r = commands.getstatusoutput('wc -l /home/ramdump/Port_COM30_wenshuai/load.cmm')>>> print r(0, '101 /home/mi/ramdump/Port_COM30_wenshuai/load.cmm')>>> print r[1]101

2017-04-14 16:45:11 1171

原创 通过Intent向service传递数据

什么是intent的action? /** * Create an intent with a given action. All other fields (data, type, * class) are null. Note that the action must be in a * namespace because Intents are

2017-04-11 09:20:35 3982 1

原创 正则表达式 In Java

java里没有类似python的search 函数怎样得到matched的字符串? groupfind/matched判断是否matched.Difference between matches() and find() in Java Regexmatches tries to match the expression against the entire str

2017-04-05 15:13:13 780 1

空空如也

空空如也

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

TA关注的人

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