摘要: Python urllib 库提供了一个从指定的 URL 地址获取网页数据,然后对其进行分析处理,获取想要的数据。 urlopen(url, data=None, proxies=None) 创建一个表示远程url的类文件对象,然后像本地文件一样操作这个类文件对象来获取远程数据。 参数url表示远程 阅读全文
posted @ 2021-04-23 17:30 神经男孩 阅读(809) 评论(0) 推荐(0)
摘要: def create_open_shop_poster(unionid, qr_code, par_data): font_path = PosterFontFath.POSTER_FONT_PATH image_background = Image.new('RGB', (799, 1080), 阅读全文
posted @ 2020-10-29 16:13 神经男孩 阅读(152) 评论(0) 推荐(0)
摘要: <html> <body> <select id="first" onChange="change()"> <option selected="selected">湖北</option> <option>广东</option> </select> <select id="second"> <opti 阅读全文
posted @ 2020-10-20 15:51 神经男孩 阅读(201) 评论(0) 推荐(0)
摘要: <a href="javascript:;" onclick="deleteUser({{ user.id }})">删除</a> function deleteUser(user_id) { var ok = confirm("您确定要删除此用户吗?"); if (ok) { $.ajax({ u 阅读全文
posted @ 2020-09-16 21:07 神经男孩 阅读(160) 评论(0) 推荐(0)
摘要: <div> <img height="100" width="100" src="https://cdn.pixabay.com/photo/2018/08/14/13/23/ocean-3605547_960_720.jpg" class="pic"/> <img height="100" wid 阅读全文
posted @ 2020-09-16 19:48 神经男孩 阅读(7554) 评论(0) 推荐(0)
摘要: <div class="form-group"> <label class="control-label">直播清晰度:</label> <p class="form-control-static">{{ shop.get_clarity_type_display }}&nbsp; <a href= 阅读全文
posted @ 2020-09-11 14:29 神经男孩 阅读(1131) 评论(0) 推荐(0)
摘要: from greenlet mport greenlet def fun1(): print(1) gr2.switch() print(2) gr2.switch() def fun2(): print(3) gr1.switch() print(4) gr1.switch() gr1 = gre 阅读全文
posted @ 2020-08-26 20:07 神经男孩 阅读(132) 评论(0) 推荐(0)
摘要: <table class="table table-bordered" style="margin-bottom: 0;"> <tr> <th class="text-center" style="width: 50px;">选择</th> <th>店铺</th> <th class="text-c 阅读全文
posted @ 2020-08-19 13:35 神经男孩 阅读(160) 评论(0) 推荐(0)
摘要: try: # 下载excel if request.GET.get('excel') == 'true': output = BytesIO() workbook = xlsxwriter.Workbook(output) sheet = workbook.add_worksheet('开店数据明细 阅读全文
posted @ 2020-08-14 15:01 神经男孩 阅读(668) 评论(0) 推荐(0)
摘要: <ol class="breadcrumb"> <li class="active">发布公告</li> </ol> <form class="form-inline" action="#" method="get" style="margin-bottom: 10px" onsubmit="ret 阅读全文
posted @ 2020-08-13 12:48 神经男孩 阅读(384) 评论(0) 推荐(0)