摘要:有时候,在通过anaconda prompt窗口执行conda install ***的安装库的命令后发生无法打开anaconda navigator的情况。如何修复?在搜索网络中各种解决方法并加以尝试后,总结出以下方案:以管理员权限打开anaconda prompt输入conda update c
阅读全文
摘要:在命令行中输入 1 安装requirements文件中的包
阅读全文
摘要:#!/usr/bin/env python# -*- coding:utf-8 -*-# Author:afei# QQ:97259460# date = 2019/8/29s_code1=''s_code2=',1,2,3's1=s_code2.strip(',').split(',')s2=s_code1.strip(',').split(',')print(s1)print(s2)s3 =...
阅读全文
摘要:1.在django中使用自定义标签实现分页功能 https://www.cnblogs.com/MnCu8261/p/5943609.html https://www.cnblogs.com/baili-luoyun/p/11075459.html 关于django2.0+Xadmin 后台页面多级
阅读全文
摘要:from selenium.webdriver.chrome.options import Options from selenium import webdriver # 无界面模式 def ChromeDriverNOBrowser(): chrome_options = Options() chrome_options.add_argument('--headles...
阅读全文
摘要:静态方法和类方法都需要使用修饰器,分别使用的是staticmethod和classmethod。属性方法的使用修饰器为property。
阅读全文
摘要:源自API文档https://xadmin.readthedocs.io/en/latest/plugins.html 第2中方式 待续
阅读全文
摘要:最近要做文字识别,不让直接用别人的接口,所以只能尝试去用开源的类库。tesseract-ocr是惠普公司开源的一个文字识别项目,通过它可以快速搭建图文识别系统,帮助我们开发出能识别图片的ocr系统。因为Windows环境开发,我也就必须在windows环境安装系统。 第一步:下载安装包 根据http
阅读全文
摘要:1.selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH chrome://version/ 查看版本 http://chromedriver.storage.googleapis.com/index.html 下载对应版本环境变量添加--...
阅读全文
摘要:1.Anaconda版本下载 https://repo.continuum.io/archive/
阅读全文
摘要:from fake_useragent import UserAgent ua = UserAgent() headers = {'User-Agent': ua.random} print(ua.random) 是的 你没看错,就这两行代码就可以搞定了,但是这个是一个第三方库,我们需要用pip install fake_useragent 安装以后 直接就可以使用了 我们看下输出的...
阅读全文
摘要:GitHub 上有一个 Awesome - XXX 系列的资源整理,资源非常丰富,涉及面非常广。awesome-python 是 vinta 发起维护的 Python 资源列表,内容包括:Web框架、网络爬虫、网络内容提取、模板引擎、数据库、数据可视化、图片处理、文本处理、自然语言处理、机器学习、日
阅读全文
摘要:pip3 install django-import-export pip3 install django-simpleui pip3 install mysqlclient python3 manage.py makemigrations python3 manage.py migrate python3 manage.py createsuperuser django-admin.p...
阅读全文
摘要:https://blog.csdn.net/yambo1992/article/details/80918250 https://www.colabug.com/4728510.html django xadmin action兼容自定义model权限 https://blog.csdn.net/q
阅读全文
摘要:模型表的建立 2.用户登陆后,设置session 用建个py文件注册用户权限 3.设置中间件 3.设置admin 4.页面左侧显示该用户的权限
阅读全文
摘要:settings.py urls.py adminx.py apps设定 1.创建一个users的app models.py adminx.py[新建] apps.py __init__.py views.py 大体结构 django版本2.2.1
阅读全文
摘要:要在Debian、Ubuntu或者其他衍生版上安装OpenSSL: 要在Fedora、CentOS或者RHEL上安装OpenSSL开发包: 安装完后,尝试重新编译程序。 linux使用su切换用户提示 Authentication failure的解决方法 这个问题产生的原因是由于ubtun系统默认
阅读全文
摘要:报错截图: 下载安装链接:The Comprehensive R Archive Network
阅读全文