摘要: import urllib.parseimport requestsimport json 定义一个公共类 class Message(object): _KEY = '90c36a579a309a10e713a85adc06e264' _TEMPLATE_ID = 131421 _MESSAGE_ 阅读全文
posted @ 2020-03-06 15:55 关美丽 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 高级一些的编辑器,都会包含宏功能,vim当然不能缺少了,在vim中使用宏是非常方便的::qx 开始记录宏,并将结果存入寄存器xq 退出记录模式@x 播放记录在x寄存器中的宏命令稍微解释一下,当在normal模式下输入:qx后,你对文本的所有编辑动作将会被记录下来,再次输入q即退出了记录模式,然后输入 阅读全文
posted @ 2019-11-22 16:03 关美丽 阅读(1320) 评论(0) 推荐(0) 编辑
摘要: C:\Users\Administrator\Desktop\denggan\zdTCPServer>ssh zd@27.128.181.220zd@27.128.181.220's password:Last login: Mon Nov 18 17:18:08 2019 from 121.28. 阅读全文
posted @ 2019-11-20 15:15 关美丽 阅读(164) 评论(0) 推荐(0) 编辑
摘要: import asyncioimport binasciiimport siximport osfrom io import BytesIOfrom tornado.httpclient import AsyncHTTPClient, HTTPRequest def choose_boundary( 阅读全文
posted @ 2019-11-20 10:33 关美丽 阅读(389) 评论(0) 推荐(0) 编辑
摘要: # 保留小数点后两位a = 12.237567b = '%.2f' %(a)print(b) 阅读全文
posted @ 2019-11-15 10:31 关美丽 阅读(156) 评论(0) 推荐(0) 编辑
摘要: pic = self.request.files.get('pic', None)[0]swf = pic.filename.split('.')[1]print(swf)filename = str(uuid.uuid4()) + '.' + swfasync with aiofiles.open 阅读全文
posted @ 2019-11-12 11:59 关美丽 阅读(271) 评论(0) 推荐(0) 编辑
摘要: offset = int(req.get('page_start', '0')) * int(req.get('page_size', '10'))limit = int(req.get('page_size', '10'))project_id = req.get('project_id')gro 阅读全文
posted @ 2019-11-11 16:43 关美丽 阅读(181) 评论(0) 推荐(0) 编辑
摘要: +++++++++++将秒变成时分秒+++++++++++++seconds = 32100m, s = divmod(seconds, 60)h, m = divmod(m, 60)time = ("%d:%02d:%02d" % (h, m, s))++++++++++将时分秒变成秒++++++ 阅读全文
posted @ 2019-10-23 17:47 关美丽 阅读(294) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-10-22 11:10 关美丽 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-10-14 11:49 关美丽 阅读(0) 评论(0) 推荐(0) 编辑