摘要: 修改hosts 文件 C:\Windows\System32\drivers\etc|hosts 增加: 140.82.113.4 github.com199.232.69.194 github.global.ssl.fastly.net cmd中执行 ipconfig /flushdns 刷新dn 阅读全文
posted @ 2024-04-18 00:19 noube 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 首先可以在 组织--》文件夹和搜索选项 中设置“在同一窗口中打开每个文件夹” 如果设置后不起作用还可以 管理员方式执行以下两条命令在开始菜单-运行中输入regsvr32 "%SystemRoot%\System32\actxprxy.dll"regsvr32 "%ProgramFiles%\Inte 阅读全文
posted @ 2018-05-22 15:07 noube 阅读(3735) 评论(0) 推荐(0) 编辑
摘要: 1、现在有网络的电脑安装相应的包 2.安装完成后 打包 1)新建一个文件夹(package),用来存放包; 2)执行 3.将打包好的 package文件夹和requirements.txt文件拷贝到无法联网的机器,进行安装 备注: 1.下载指定的包到指定文件夹 2.安装指定的离线包 原文地址:htt 阅读全文
posted @ 2018-05-22 10:15 noube 阅读(11500) 评论(0) 推荐(1) 编辑
摘要: 1.pip freeze > requirements.txt 此方法将导出当前环境下,Python安装的所有类库 2.pip install pipreqs $ pipreqs /path/to/project 只导出当前项目下用到的类库 使用requirements.txt安装类库 pip in 阅读全文
posted @ 2018-05-21 11:35 noube 阅读(1759) 评论(0) 推荐(0) 编辑
摘要: ImportError: no module named win32api 安装win32包就好了 阅读全文
posted @ 2017-04-13 14:33 noube 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 允许远程用户登录访问mysql的方法 从任何主机上使用root用户,密码:youpassword(你的root密码)连接到mysql服务器: # mysql -u root -proot mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFI 阅读全文
posted @ 2017-04-08 17:22 noube 阅读(480) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # _*_ coding:utf-8 _*_ __author__ = "ligq" import time import random import copy import sys def cal_time(func): def wrapper(*args, **kwargs): t1 = time.time() ... 阅读全文
posted @ 2017-03-17 11:25 noube 阅读(231) 评论(0) 推荐(0) 编辑
摘要: django生成登录随机图片验证码:http://www.cnblogs.com/wupeiqi/articles/4786251.html HTML JavaScript OR jQuery 阅读全文
posted @ 2017-03-14 14:29 noube 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 安装GIT sudo apt-get install git [root@s1-61526 /]# git --version git version 1.7.1 [root@s1-61526 /]# 初始化一个Git仓库,使用git init命令。 添加文件到Git仓库,分两步: 第一步,使用命令 阅读全文
posted @ 2017-03-09 21:10 noube 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 数据库 1 from django.db import models 2 from django.contrib.auth.models import User 3 from django.contrib.auth.models import ( 4 BaseUserManager, Abstrac 阅读全文
posted @ 2017-03-03 19:29 noube 阅读(281) 评论(0) 推荐(0) 编辑