摘要: 阅读全文
posted @ 2018-12-05 15:10 拟好,妖妖灵 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Maven+testNG+idea 1、新建项目,选择Maven框架 2、在src -> test -> java 中新建测试类:TestDemo.java 3、在项目下新建目录 res,新建文件 testNG.xml 4、修改POM.xml文件内容 5、点击 test 执行testDemo脚本 6 阅读全文
posted @ 2018-11-07 17:58 拟好,妖妖灵 阅读(117) 评论(0) 推荐(0) 编辑
摘要: python 常用模块: time & datetime, random, os, sys, hashlib, re, json, configparse, logging 不常用: pickle,shelve 阅读全文
posted @ 2018-09-11 15:34 拟好,妖妖灵 阅读(78) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python# -*- coding: utf-8 -*-import sys,logging,osimport re计算: s = '1 - 2 * ( (60-30 +(-40/5) * (9-2*5/3 + 7 /3*99/4*2998 +10 * 568/14 )) - 阅读全文
posted @ 2018-09-11 15:14 拟好,妖妖灵 阅读(205) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-# 所有的生成器都是迭代器,所有的迭代器不一定都是生成器# 迭代器必须满足: 1、有iter()方法 2、有next()方法# for循环的工作: #1 调用iter()方法返回一个迭代器对象 #2 不断调用next()方法 #3 处理StopItera 阅读全文
posted @ 2018-09-04 18:50 拟好,妖妖灵 阅读(95) 评论(0) 推荐(0) 编辑
摘要: # 列表生成器a = [x for x in range(10)]print(a)# 生成器对象的2种定义方法#1 def add(a): return a+ab = (add(x) for x in range(5))#2 yield# 生成器的3种访问方法#1 print(next(g))#2f 阅读全文
posted @ 2018-09-04 16:07 拟好,妖妖灵 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1、作用域 2、高阶函数 3、闭包import timedef logger(flag=False): def show_time(f): def inner(*args,**kwargs): start = time.time() f(*args,**kwargs) end = time.time 阅读全文
posted @ 2018-09-04 11:15 拟好,妖妖灵 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 生我者,玄冥之苍天,育我者,茫茫之大地,父兮生我,母兮掬我。 我之游,渺渺宇宙,生之不知所之,逝之不知所往,飘飘乎一缕幽魂。 我歌,长歌当哭,我舞,醉舞若泣。 长啸以天,悲以动天,恸哭于地,泪如倾盆。放浪形骸,得于天真。 御六合之气,纵横于长空,驭雷咤电,呼啸风云,今夕何夕,梦中杜康。 生亦何欢,死 阅读全文
posted @ 2017-12-28 16:37 拟好,妖妖灵 阅读(965) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-12-22 15:45 拟好,妖妖灵 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-12-15 14:00 拟好,妖妖灵 阅读(88) 评论(0) 推荐(0) 编辑