上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 97 下一页
摘要: python manage.py makemigrations <appname> python manage.py migrate <appname> 阅读全文
posted @ 2020-07-06 18:53 市丸银 阅读(868) 评论(0) 推荐(0)
摘要: def get_client_ip(request): x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR') if x_forwarded_for: ip = x_forwarded_for.split(',')[0] # 所以这里是真 阅读全文
posted @ 2020-07-06 16:48 市丸银 阅读(809) 评论(0) 推荐(0)
摘要: import uuid def get_mac_address(): node = uuid.getnode() mac = uuid.UUID(int=node).hex[-12:] print(mac) return mac get_mac_address() 阅读全文
posted @ 2020-07-06 15:47 市丸银 阅读(875) 评论(0) 推荐(0)
摘要: 安装 https://liqiang.io/post/install-snap-in-centos-cd98d073 启动 https://www.jianshu.com/p/42739a0182ff 安装本地包 https://blog.csdn.net/qq_25540095/article/d 阅读全文
posted @ 2020-07-03 11:08 市丸银 阅读(765) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/nahancy/article/details/86316971 阅读全文
posted @ 2020-07-03 10:34 市丸银 阅读(101) 评论(0) 推荐(0)
摘要: git config credential.helper store 阅读全文
posted @ 2020-06-30 10:45 市丸银 阅读(503) 评论(0) 推荐(1)
摘要: 实用例子 from sklearn import datasets import matplotlib.pyplot as plt # # 簇 # x, y = datasets.make_blobs(n_samples=1000, n_features=4, centers=4, cluster_ 阅读全文
posted @ 2020-06-20 16:52 市丸银 阅读(208) 评论(0) 推荐(0)
摘要: 1、简易安装模块 conda install scikit-learn 失败看下面链接 https://sklearn.apachecn.org/docs/master/62.html 2、整体过程(与tensorflow相似) 1)、获取数据 2)、建模 3)、训练模型 4)、测试模型 3、简单案 阅读全文
posted @ 2020-06-20 16:41 市丸银 阅读(219) 评论(0) 推荐(0)
摘要: path = r"C:\Users\wuhao\.keras\datasets\mnist.npz" def load_data(path): with np.load(path) as f: x_train, y_train = f['x_train'], f['y_train'] x_test, 阅读全文
posted @ 2020-06-20 14:32 市丸银 阅读(1472) 评论(0) 推荐(0)
摘要: 根据phone 查找 地点 安装 pip install phone 引用 from phone import Phone 使用 # 通过 电话号码 获取省份 通过 Phone模块 def get_province_city(self, phone_num): try: info = Phone() 阅读全文
posted @ 2020-06-17 16:48 市丸银 阅读(744) 评论(0) 推荐(0)
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 97 下一页