摘要: 调用类报错,具体如下 TypeError: unbound method submit() must be called with jinjin instance as first argument (got float instance instead) 后来解决方法:在类名称后边加括号() 由于 阅读全文
posted @ 2018-10-23 15:44 Tang豆豆 阅读(708) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-07-25 15:26 Tang豆豆 阅读(6) 评论(0) 推荐(0)
摘要: 1、之前用python做appium测试,今天想要尝试下做接口测试 发现在pycharm下,import requests总是报错 : no model named requests 联想到应该是没有装request库 2、准备安装 (1)输入命令:pip install requests (2)安 阅读全文
posted @ 2018-06-22 10:56 Tang豆豆 阅读(174) 评论(0) 推荐(0)
摘要: 1、下载安装包,地址:http://jenkins-ci.org/ 2、点击安装jenkins 3、如果是新用户,创建用户名和密码;就用户直接登录 4、进入主页 注:如果要修改端口,在jenkins安装文件中找到jenkins.xml这个文件,修改端口号 5、系统管理 全局工具配置 配置JDK等 6 阅读全文
posted @ 2018-04-04 16:00 Tang豆豆 阅读(130) 评论(0) 推荐(0)
摘要: 1、split(' '),''号中间是空格 def break_words(stuff): """This function will break up words for us""" words=stuff.split(' ') return words 返回的words应该是This funct 阅读全文
posted @ 2018-04-03 09:54 Tang豆豆 阅读(6986) 评论(0) 推荐(0)
摘要: 1、添加线程组,自己给线程组命名 2、添加CSV data set config 如上,filename是文件的名字 新增.txt文件,将变量写在文件中,完成后,更名为.csv;变量之间用逗号隔开(第一列15300000000就是mobile, 第二列32位加密是pw) 文件如果放在apache-j 阅读全文
posted @ 2018-03-08 11:21 Tang豆豆 阅读(174) 评论(0) 推荐(0)
摘要: 1、脚本 def add(a,b): return (a+b)def div(a,b,c): return (a/b-c)x = div(34,100,1023)y = add(24,x)print ("the result is %f" %y) print ("the result is %d" 阅读全文
posted @ 2018-02-24 15:52 Tang豆豆 阅读(142) 评论(0) 推荐(0)
摘要: 1、脚本 def max(a,b,c): x = a if (a<b): x=b if (b<c): x=c print ("the max num is %d" %x) def hello(list): list.append([1,2,3,4]) print(list) return list 阅读全文
posted @ 2018-02-24 11:20 Tang豆豆 阅读(288) 评论(0) 推荐(0)
摘要: 1、脚本 from sys import argvfrom os.path import existsscript,from_file,to_file = argvprint("Copy file %s to file %s" %(from_file,to_file))#以读的方式打开from_fi 阅读全文
posted @ 2018-02-23 15:53 Tang豆豆 阅读(228) 评论(0) 推荐(0)
摘要: 1、脚本 from sys import argv script,filename = argv#以读的模式打开txt文件txt = open(filename,'r+')print ("the filename is %s" %filename)print ("the following is r 阅读全文
posted @ 2018-02-11 18:49 Tang豆豆 阅读(123) 评论(0) 推荐(0)