Python
lingluo231
这个作者很懒,什么都没留下…
展开
-
Anaconda安装Django,出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua
使用anaconda安装Django,执行“conda install Django”,结果出现了“CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/current_repodata.json>”。以下是我的解决步骤。 1、环境: 操作系统:windows10 64位 Anaconda版本:conda 4.8..原创 2021-08-22 21:56:09 · 408 阅读 · 0 评论 -
post发送json请求
r = requests.post(url,json=data) 详细参考https://www.cnblogs.com/puresoul/p/7488700.html转载 2018-10-15 11:12:39 · 214 阅读 · 0 评论 -
生成随机字符串方法
#!/usr/bin/env python # -*- coding: utf-8 -*- import random import string #第一种方法 seed = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()_+=-" sa = [] for i in range...转载 2018-10-15 11:13:29 · 946 阅读 · 0 评论 -
获取json字符串子层级的字段值
class GetDicValue(object): def __init__(self, d): for a, b in d.items(): if isinstance(b, (list, tuple)): setattr(self, a, [GetDicValue(x) if isinstance(x, dic...转载 2018-10-15 11:14:55 · 2568 阅读 · 0 评论