def quickSort(mylist): if len(mylist) <= 1: return mylist list1,list2,list3 = [],[],[] for x in range(len(mylist)): if mylist[x] < mylist[0]: list1.ap Read More
posted @ 2019-07-21 20:26 倔强的小花 Views(92) Comments(0) Diggs(0) Edit
# coding:utf-8 import jira # Jira参数设置Jiras = { 'url':"http://192.168.15.150:8800", # jira地址 'username':"qiujunjie", # 登录账号 'password':"123456", # 登录密码 Read More
posted @ 2019-07-21 20:25 倔强的小花 Views(6199) Comments(0) Diggs(0) Edit
1.jira获取单子信息的api http://192.168.15.150:8080/rest/api/2/issue/KOF-38935 Read More
posted @ 2019-07-21 20:21 倔强的小花 Views(284) Comments(0) Diggs(0) Edit
1.解决部分网站打开速度慢的问题 优化思路:通过绕过DNS解析,直接在本地绑定host: (1)、在浏览器中打开DNS查询网站http://tool.chinaz.com/dns,我们输入github.com (2)、点击检测,在下方的结果列表中,选择TTL值小的IP地址192.30.255.113 Read More
posted @ 2019-07-21 19:45 倔强的小花 Views(108) Comments(0) Diggs(0) Edit
1.静默运行系统计划任务 定时任务执行的时候会闪一个taskeng界面:解决办法:用系统用户去执行就不会弹框了步骤: 1.打开计划任务界面 2.选中常规页签 3.点击"更改用户或组(U)..." 4.点击"高级(A)..." 5.点击"立即查找" 6.选择SYSTEM 上面的方案有个问题:如果需要用 Read More
posted @ 2019-07-21 19:41 倔强的小花 Views(165) Comments(0) Diggs(0) Edit
1.静默执行批处理指令 用vbs执行.bat不会弹出黑框 把以下代码: Set ws = CreateObject("Wscript.Shell") ws.run "cmd /c run.bat",vbhide 保存到runbat.vbs文件 双击执行runbat.vbs文件就能静默执行run.ba Read More
posted @ 2019-07-21 19:37 倔强的小花 Views(357) Comments(0) Diggs(0) Edit
1.获取svn日志API:pysvn.Client().log() log( url_or_path, revision_start=pysvn.Revision( opt_revision_kind.head ), revision_end=pysvn.Revision( opt_revision Read More
posted @ 2019-07-21 19:32 倔强的小花 Views(2043) Comments(0) Diggs(0) Edit
1.关于函数内给全局变量赋值 a = 1 def test(): if a==1: a = 2这样写是会报错的,python会默认认为你在函数内调用的是局部变量,if后面的a是一个未定义的局部变量,报错需要在函数内先声明一下a是全局变量 a = 1 def test(): global a if a Read More
posted @ 2019-07-21 19:30 倔强的小花 Views(295) Comments(0) Diggs(0) Edit
1.添加模块搜索路径 package.path = package.path .. ";../data/?.lua" Read More
posted @ 2019-07-21 19:26 倔强的小花 Views(289) Comments(0) Diggs(0) Edit
1、关于延时的区别 a.sleep() mainForm.button.oncommand = function(id,event){ mainForm.edit.print("start"); sleep(5000); mainForm.edit.print("end"); } 运行效果:点击按钮 Read More
posted @ 2019-07-21 16:06 倔强的小花 Views(4990) Comments(0) Diggs(1) Edit
1、在主线程导入Python库 import py; 2、在主线程释放GIL py.releaseThread(); 3、调用Python脚本(必须在py.lock中调用Python脚本,否则会报错) a.主线程中调用: py.lock( function(){ test1 = py.import( Read More
posted @ 2019-07-21 15:56 倔强的小花 Views(1058) Comments(0) Diggs(0) Edit