yasmine_yang

导航

2018年12月12日 #

进度条

摘要: def view_bar(num, total): rate = float(num) / float(total) rate_num = int(rate * 100) r = '\r[%s%s]%d%%' % ("="*(rate_num), " "*(100-rate_num), rate_n 阅读全文

posted @ 2018-12-12 18:05 yasmine_yang 阅读(96) 评论(0) 推荐(0)

python unittest框架

摘要: 四个部分: test fixture A test fixture represents(代表) the preparation needed to perform one or more tests, and any associate cleanup actions. This may invo 阅读全文

posted @ 2018-12-12 15:25 yasmine_yang 阅读(149) 评论(0) 推荐(0)

2018年12月11日 #

e充电加密破解

摘要: def encrypt(self,stationId ): keys = 'F29E0E39-98E4-F4CC318443' encrypt_obj = pyDes.triple_des(keys, pyDes.ECB, "\0\0\0\0\0\0\0\0", pad=None, padmode= 阅读全文

posted @ 2018-12-11 16:24 yasmine_yang 阅读(1024) 评论(1) 推荐(1)

获取范围内渔网数据

摘要: 解析地图 阅读全文

posted @ 2018-12-11 15:11 yasmine_yang 阅读(582) 评论(0) 推荐(0)

字符串列表相互转换

摘要: 1.字符串转列表 split() str1 = "hi hello world"print(str1.split(" "))输出:['hi', 'hello', 'world'] 2.列表转字符串 " ".join() l = ["hi","hello","world"] #str = " ".jo 阅读全文

posted @ 2018-12-11 14:55 yasmine_yang 阅读(208) 评论(0) 推荐(0)

定时任务BlockingScheduler

摘要: def task(): current_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') print(current_time) coordinate_list = Getlnglat().spyder_list_all() p 阅读全文

posted @ 2018-12-11 14:46 yasmine_yang 阅读(4456) 评论(0) 推荐(0)