08 2018 档案

摘要:Python 下载适合系统的版本并安装,安装时勾选把路径加入path 验证:windows下打开cmd输入python 出现以下界面说明安装成功 Android 下载安装路径:http://tools.android-studio.org/index.php/sdk 先下载安装jdk Jdk安装文档 阅读全文
posted @ 2018-08-02 10:38 白水煮茶 阅读(194) 评论(0) 推荐(0)
摘要:Appium环境搭建(Windows版) 注:appium安装到C盘,node.js安装到C盘 一、安装node.js 1、到官网下载node.js:https://nodejs.org/en/download/ 2、获取到安装文件后,直接双击安装文件,根据程序的提示,完成nodejs的安装。 3、 阅读全文
posted @ 2018-08-02 10:32 白水煮茶 阅读(192) 评论(0) 推荐(0)
摘要:# 生成器n = (i for i in range(0,10000))print(n)def gen(max): n = 0 while n <= max: n +=1 yield ng = gen(10000)for i in g: print(i) 阅读全文
posted @ 2018-08-01 16:34 白水煮茶 阅读(128) 评论(0) 推荐(0)
摘要:# conding : utf-8# 遍历器class BookCollection: def __init__(self): self.data = ['《往事》','《只能》','《回味》'] self.cur = 0 def __iter__(self): return self def __ 阅读全文
posted @ 2018-08-01 16:24 白水煮茶 阅读(533) 评论(0) 推荐(0)
摘要:# 列表推导式# 集合推导式# map filtera = [1,2,3,4,5,6,7,8]b = [i**2 for i in a if i >=5]print(b)a = {1,2,3,4,5,6,7,8}b = {i**2 for i in a if i >=6}print(b)# 字典c 阅读全文
posted @ 2018-08-01 11:32 白水煮茶 阅读(196) 评论(0) 推荐(0)
摘要:# coding:utf-8day = 1def get_sunday(): print(777) return "Sunday"def get_monday(): print(111) return "Monday"def get_tuseday(): print(222) return "Tue 阅读全文
posted @ 2018-08-01 11:12 白水煮茶 阅读(1252) 评论(0) 推荐(0)