11 2017 档案

python3.5.3rc1学习十一:字典与模块
摘要:#os模块import oscurDir = os.getcwd()print(curDir) os.mkdir("新建") import timetime.sleep(2)os.rename("新建","文件")time.sleep(2)os.rmdir("文件") #多行打印 print(''' 阅读全文

posted @ 2017-11-30 13:43 sunny_2016 阅读(125) 评论(0) 推荐(0) 编辑

python3.5.3rc1学习十:网络请求
摘要:#sys模块import sys sys.stderr.write('This is stderr text\n')# 因为从定向有缓冲区,所以需要以下这行代码sys.stderr.flush()sys.stdout.write('This is stdout text\n') # 获取命令行参数, 阅读全文

posted @ 2017-11-30 13:41 sunny_2016 阅读(125) 评论(0) 推荐(0) 编辑

python3.5.3rc1学习九:正则表达式
摘要:# 正则表达式 ''''' 正则表达式是有一些特殊字符组成,能够帮你找到一些符合一定规则的字符串 先来了解几个符号所代表的意思 \d 匹配所有的数字 \D 匹配所有,但是数字除外 \s 空格 \S 匹配所有但是空格除外 \w 匹配所有的字母 \W 匹配所有但是字母除外 . 任意除换行符 \n \. 阅读全文

posted @ 2017-11-30 13:40 sunny_2016 阅读(118) 评论(0) 推荐(0) 编辑

python3.5.3rc1学习八:文件打包
摘要:from cx_Freeze import setup, Executable setup(name='test to exe', version = '0.1', description='test from py file to exe file', executables = [Executa 阅读全文

posted @ 2017-11-30 13:39 sunny_2016 阅读(88) 评论(0) 推荐(0) 编辑

python3.5.3rc1学习七:多线程
摘要:import threading def exampleFun(): #打印当前激活的线程数量 print(threading.active_count) #查看上面激活的线程是哪几个 print(threading.enumerate()) exampleFun() #创建线程 def examp 阅读全文

posted @ 2017-11-30 13:37 sunny_2016 阅读(121) 评论(0) 推荐(0) 编辑

python3.5.3rc1学习六:画图
摘要:# 可以设置颜色,g代表green, r代表red,y代表yellow,b代表blue# linewidth = 5,设置线条粗细 # label 设置线条名称 ##plt.plot(x,y,'b',linewidth=5,label='Line One')##plt.plot(x1,y1,'r', 阅读全文

posted @ 2017-11-30 13:36 sunny_2016 阅读(221) 评论(0) 推荐(0) 编辑

利用正则得到页面邮箱
摘要:#coding=utf-8#python2.7实现 from selenium import webdriver import re dr = webdriver.Chrome() dr.maximize_window() dr.implicitly_wait(6) dr.get("http://h 阅读全文

posted @ 2017-11-29 13:10 sunny_2016 阅读(139) 评论(0) 推荐(0) 编辑

python3.5.3rc1学习五:模块
摘要:#比较大小#name:maxNumber.py#比较两个数大小#C:\Users\Anthony\AppData\Local\Programs\Python\Python36-32\Lib\site-packagesdef maxTwo(x,y): if x > y: print(x) else: 阅读全文

posted @ 2017-11-25 13:41 sunny_2016 阅读(110) 评论(0) 推荐(0) 编辑

python3.5.3rc1学习五:列表与元组
摘要:#元组和列表 #元组定义x = 5,6,2,6 #or x = (5,6,2,6) #列表定义 y = [5,6,2,6] # 元组的使用,我们用return语句来演示 def exampleFunc(): return (15,6)a,b = exampleFunc()print (a,b) pr 阅读全文

posted @ 2017-11-25 13:40 sunny_2016 阅读(111) 评论(0) 推荐(0) 编辑

python3.5.3rc1学习四:类
摘要:class calculator: def add(x,y): return x + y print(added) def sub(x,y): return x - y print(sub) def mul(x,y): return x * y print(mul) def div(x,y): re 阅读全文

posted @ 2017-11-25 13:18 sunny_2016 阅读(118) 评论(0) 推荐(0) 编辑

python3.5.3rc1学习三:文件操作
摘要:##全局变量与局部变量x = 6 def printFuc(): y = 8 z =9 print(y + z) print(x) printFuc()#print(y)#常见错误##name = "Anthony"##print(Name) #文件写入 text = "Sample Text to 阅读全文

posted @ 2017-11-25 13:01 sunny_2016 阅读(96) 评论(0) 推荐(0) 编辑

python3.5.3rc1学习二
摘要:#if else示例x = 5y = 8 if x > y: print("x is greater than y")else: print("x is not greater than y") print(" ")#if-elif-elsex = 15y = 18z = 15 if x > y: 阅读全文

posted @ 2017-11-24 14:13 sunny_2016 阅读(132) 评论(0) 推荐(0) 编辑

python3.5.3rc1学习一
摘要:print ("Hello Pythoh3")print('我喜欢"香蕉"')print('we\'ar go to shoping.')print("我们发现这个\"地方\"不一样")print("Hi" + "Tom")##print("Hi" + 5)print("Hi" + str(5))p 阅读全文

posted @ 2017-11-24 13:27 sunny_2016 阅读(280) 评论(0) 推荐(0) 编辑

java中的字符串二
摘要:public class TestString { public static void main(String[] args) { // TODO Auto-generated method stub String s1 = "Hello world"; if(!s1.isEmpty()){ Sy 阅读全文

posted @ 2017-11-21 13:42 sunny_2016 阅读(112) 评论(0) 推荐(0) 编辑

java中的字符串一
摘要:public class TestString2 { public static void main(String[] args) { //判断两字符串是否相等 String s1 = "Hello world"; String s2 = "Hello java"; if (s1.equals(s2 阅读全文

posted @ 2017-11-21 13:41 sunny_2016 阅读(88) 评论(0) 推荐(0) 编辑

java中的控制语句
摘要:package com.promote; public class ForDemo { public static void main(String[] args) { // 1到100相加求和 int sum=0; for (int i = 0; i <=100; i++) { sum+=i; } 阅读全文

posted @ 2017-11-21 13:40 sunny_2016 阅读(104) 评论(0) 推荐(0) 编辑

接口测试模板显示中文
该文被密码保护。

posted @ 2017-11-20 13:07 sunny_2016 阅读(1) 评论(0) 推荐(0) 编辑

查找被占用端口的方法
摘要:C:\Users\ceshi> netstat -aon|findstr "5037" TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 6600 TCP 127.0.0.1:5037 127.0.0.1:52542 ESTABLISHED 6600 TCP 127.0. 阅读全文

posted @ 2017-11-07 16:17 sunny_2016 阅读(209) 评论(0) 推荐(0) 编辑

windows下命令行启动appium
摘要:appium --session-override 阅读全文

posted @ 2017-11-03 14:16 sunny_2016 阅读(472) 评论(0) 推荐(0) 编辑

python中判断两个对象是否相等
摘要:#coding=utf-8#比较两个对象是否相等#python 2中使用cmp(),==,is#is 主要是判断 2 个变量是否引用的是同一个对象,如果是的话,则返回 true,否则返回 false。#== 用来判断两个对象的值是否相等(跟 Java 不同,Java 中 == 用来判断是否是同一个对 阅读全文

posted @ 2017-11-03 13:35 sunny_2016 阅读(16793) 评论(0) 推荐(0) 编辑

开源自动化测试平台 phoenixframework 环境搭建及使用
摘要:https://testerhome.com/topics/4651 阅读全文

posted @ 2017-11-03 13:12 sunny_2016 阅读(195) 评论(0) 推荐(0) 编辑

MySQL 5.5/5.6/5.7及以上版本安装包安装时如何选择安装路径
摘要:安装环境需求: 自从昨天安装了mysql 5.7,发现了一个问题,mysql5.6起,已经不支持2003系统了,如果安装了无法开启服务而且会出现在 本地计算机 无法启动 MySQL57 服务。错误 193: 0xc1,那就是版本不兼容,提示mysqld.exe不是正确的32位程序。 昨天整理的一篇m 阅读全文

posted @ 2017-11-02 17:34 sunny_2016 阅读(815) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示