08 2020 档案

摘要:输入以下命令: sudo apt-get -f install 参考链接:https://www.jianshu.com/p/767c9a29b403 阅读全文
posted @ 2020-08-28 10:40 胸怀丶若谷 阅读(1219) 评论(0) 推荐(0) 编辑
摘要:Install the GPG key: wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - Ensure apt is set up to work with https source 阅读全文
posted @ 2020-08-27 11:14 胸怀丶若谷 阅读(1039) 评论(0) 推荐(0) 编辑
摘要:方案一: 进入项目路径,在cmd窗口输入python 文件名。之后查看结果,看是否有模块未安装,或者是未导入模块。因为pyinstaller打包时,是按照被打包文件上的导入的库名进行打包的,所以需要将所有导入的模块声明放入这个文件中。 方案二: 参考链接:https://www.pianshen.c 阅读全文
posted @ 2020-08-27 08:53 胸怀丶若谷 阅读(1439) 评论(0) 推荐(0) 编辑
摘要:首先,我们要安装alien这一软件: $sudo apt-get install alien ##alien默认没有安装,所以首先要安装它 $sudo alien xxxx.rpm ##将rpm转换为deb,完成后会生成一个xxxx.deb $sudo dpkg -i xxxx.deb ##这样xx 阅读全文
posted @ 2020-08-24 15:59 胸怀丶若谷 阅读(1832) 评论(0) 推荐(0) 编辑
摘要:django.core.exceptions.ImproperlyConfigured: Specifying a namespace in include() without providing an app_name is not supported. Set the app_name attr 阅读全文
posted @ 2020-08-24 11:16 胸怀丶若谷 阅读(1048) 评论(0) 推荐(0) 编辑
摘要:解决方案: 定义外键的时候需要加上 on_delete=;即:contract = models.ForeignKey(Contract, on_delete=models.CASCADE) 阅读全文
posted @ 2020-08-24 10:27 胸怀丶若谷 阅读(379) 评论(0) 推荐(0) 编辑
摘要:1.打开mysql命令行 show variables like '%char%'; 将字符集显示不是utf-8的更改为utf-8 例如:set character_set_database=utf8; 重启mysql,重新映射数据表即可 参考链接:https://blog.csdn.net/qq_ 阅读全文
posted @ 2020-08-23 15:54 胸怀丶若谷 阅读(1102) 评论(0) 推荐(0) 编辑
摘要:一、 启动1、使用 service 启动:service mysql start2、使用 mysqld 脚本启动:/etc/inint.d/mysql start3、使用 safe_mysqld 启动:safe_mysql&二、停止1、使用 service 启动:service mysql stop 阅读全文
posted @ 2020-08-23 15:53 胸怀丶若谷 阅读(4168) 评论(0) 推荐(0) 编辑
摘要:顺着报错文件点进去,找到query = query.decode(errors=‘replace’)将decode修改为encode即可. 阅读全文
posted @ 2020-08-21 09:43 胸怀丶若谷 阅读(230) 评论(0) 推荐(0) 编辑
摘要:输入以下命令: 1 grant all privileges on 库名.* to 账户名@'%' identified by 'password'; 2 flush privileges; 阅读全文
posted @ 2020-08-21 09:25 胸怀丶若谷 阅读(17) 评论(0) 推荐(0) 编辑
摘要:首先安装该模块: sudo apt-get install python3-venv 之后创建用于存储工程的文件夹 mkdir [filename] 创建环境: python3 -m venv venv 激活环境: source venv/bin/activate 退出虚拟环境: deactivat 阅读全文
posted @ 2020-08-20 14:47 胸怀丶若谷 阅读(2272) 评论(0) 推荐(1) 编辑
摘要:安装虚拟环境: 1 sudo apt-get install virtualenvwrapper 配置环境变量: 1.创建目录用于存放虚拟环境。 1 mkdir $HOME/.virtualenvs 2.在~/.bashrc中添加两行数据 1 vim ~/.bashrc 2 按i键,写入: 3 ex 阅读全文
posted @ 2020-08-20 14:29 胸怀丶若谷 阅读(780) 评论(0) 推荐(0) 编辑
摘要:问题一:django.db.utils.OperationalError: (1045, "Access denied for user 'leo'@'localhost' (using password: YES)") 1 root@leo-virtual-machine:/home/leo# m 阅读全文
posted @ 2020-08-20 13:01 胸怀丶若谷 阅读(1377) 评论(0) 推荐(0) 编辑
摘要:第一步:去官网下载安装 (重点)第二步:先解压,然后在mysql下创建一个my.ini文件,更改my.ini文件里面的两行安装目录,第二行加上\data,my.ini文件不能多或少一个符号,内容见文章最后。在path(环境变量里面)加上mysql路径(/bin)。 (重点)第三步:进入命令指示符(c 阅读全文
posted @ 2020-08-20 09:57 胸怀丶若谷 阅读(154) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/iehadoop/article/details/82961264 阅读全文
posted @ 2020-08-19 15:07 胸怀丶若谷 阅读(253) 评论(0) 推荐(0) 编辑
摘要:输入以下代码: 1 解决方法: 2 sudo apt-get install libmysqlclient-dev 3 4 再次安装: 5 pip3 install mysqlclient 文章链接:https://www.cnblogs.com/carious/p/10160684.html 阅读全文
posted @ 2020-08-19 14:35 胸怀丶若谷 阅读(281) 评论(0) 推荐(0) 编辑
摘要:输入以下命令: 1 sudo apt-get install git 阅读全文
posted @ 2020-08-19 13:50 胸怀丶若谷 阅读(124) 评论(0) 推荐(0) 编辑
摘要:文章连接:https://blog.csdn.net/weixx3/article/details/80782479 阅读全文
posted @ 2020-08-19 11:40 胸怀丶若谷 阅读(89) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/u014171091/article/details/100913533 阅读全文
posted @ 2020-08-19 11:12 胸怀丶若谷 阅读(107) 评论(0) 推荐(0) 编辑
摘要:1、设置root用户的密码: sudo passwd root 2、切换到root用户权限 su 3、切换回个人用户权限 exit 阅读全文
posted @ 2020-08-19 10:56 胸怀丶若谷 阅读(8069) 评论(0) 推荐(0) 编辑
摘要:ubuntu18.04 默认没有安装 pip ,需要安装 python3-pip,即可解决 1 sudo apt-get install python3-pip 在shell脚本中输入以下命令: 1 sudo apt-get install python3-distutils 阅读全文
posted @ 2020-08-19 10:44 胸怀丶若谷 阅读(560) 评论(0) 推荐(0) 编辑
摘要:sudo apt-get purge realvnc-vnc-server推荐连接:https://askubuntu.com/questions/653321/how-to-uninstall-real-vnc-in-ubuntu-14-04 阅读全文
posted @ 2020-08-18 17:04 胸怀丶若谷 阅读(6588) 评论(0) 推荐(0) 编辑
摘要:sudo vmware-installer -u vmware-workstation 阅读全文
posted @ 2020-08-18 13:57 胸怀丶若谷 阅读(116) 评论(0) 推荐(0) 编辑
摘要:输入命令: sudo dpkg -i file.deb 阅读全文
posted @ 2020-08-18 11:41 胸怀丶若谷 阅读(148) 评论(0) 推荐(0) 编辑
摘要:输入命令: sudo apt-get install -f 阅读全文
posted @ 2020-08-18 11:40 胸怀丶若谷 阅读(140) 评论(0) 推荐(0) 编辑
摘要:查看app在settings.py文件夹中是否有注册。 阅读全文
posted @ 2020-08-17 11:19 胸怀丶若谷 阅读(178) 评论(0) 推荐(0) 编辑
摘要:找遍资料终于找到了解决方法: 在脚本开头import这个module即可,这个可能是某个编码的问题,没有深究,解决就好import encodings.idna 阅读全文
posted @ 2020-08-14 10:05 胸怀丶若谷 阅读(979) 评论(0) 推荐(0) 编辑
摘要://调用django命令 tools->Run manage.py... —>弹出窗口—>输入命令,回车 //创建appstartapp [appname] //数据库迁移makemigrations migrate 阅读全文
posted @ 2020-08-10 17:10 胸怀丶若谷 阅读(858) 评论(0) 推荐(0) 编辑
摘要:1.3 网站运行原理及开发流程 常用术语: 客户端:在计算机上运行并连接到互联网的应用程序,简称浏览器。用户通过操作客户端实现网站和用户之间的数据交互。 服务器:能连接到互联网且具有IP地址的计算机,服务器主要接受和处理用户的请求信息。当用户在客户端操作网页的时候,实质是向网站发送一个HTTP请求, 阅读全文
posted @ 2020-08-10 16:49 胸怀丶若谷 阅读(849) 评论(0) 推荐(0) 编辑
摘要:Django的官网:https://www.djangoproject.com/ Django Book2.0版本的中文文档:http://djangobook.py3k.cn/2.0/chapter01/ Django2.0版本的中文文档:http://python.usyiyi.cn/trans 阅读全文
posted @ 2020-08-10 16:36 胸怀丶若谷 阅读(176) 评论(0) 推荐(0) 编辑
摘要:QRadioButton 该类提供了一组可供选择的按钮和文本标签,用户可以选择其中一个选项,标签用于显示对应的文本信息。单选钮是一种开关按钮,可以切换为on或者off,急checked或者unchecked,主要是为用户提供“多选一”的选择。 QRadioButton 是单选按钮默认是独占的。对于继 阅读全文
posted @ 2020-08-01 14:34 胸怀丶若谷 阅读(2944) 评论(0) 推荐(0) 编辑
摘要:1 import sys 2 from PyQt5.QtCore import * 3 from PyQt5.QtGui import * 4 from PyQt5.QtWidgets import * 5 6 class Form(QDialog): 7 def __init__(self): 8 阅读全文
posted @ 2020-08-01 13:48 胸怀丶若谷 阅读(973) 评论(0) 推荐(0) 编辑
摘要:在任何GUI设计中,按钮都是最重要的常用的触发动作请求的方式,用来和用户进行交互操作。在PyQt中根据不同的使用场景将按钮划分为不同的表现形式。按钮的积累是QAbstractButton,提供了按钮的通用性功能。QAbstractButton类为抽象类,不能实例化,必须有其他的按钮类继承Qabstr 阅读全文
posted @ 2020-08-01 10:21 胸怀丶若谷 阅读(257) 评论(0) 推荐(0) 编辑
摘要:import sys from PyQt5.QtWidgets import QApplication, QWidget, QTextEdit,QVBoxLayout, QPushButton class TextEditDemo(QWidget): def __init__(self): supe 阅读全文
posted @ 2020-08-01 10:07 胸怀丶若谷 阅读(825) 评论(0) 推荐(0) 编辑
摘要:QTextEdit类是一个多行文本框控件,可以显示多行文本内容,当文本框超出控件显示范围时,可以显示水平个垂直滚动条。QTextEdit不仅可以显示文本还可以显示HTML文档。 QTextEdit类中的常用方法如下: setPlainText():设置多行文本框的文本内容 toPlainText() 阅读全文
posted @ 2020-08-01 09:56 胸怀丶若谷 阅读(753) 评论(0) 推荐(0) 编辑
摘要:1 import sys 2 from PyQt5.QtWidgets import QApplication, QLineEdit, QWidget, QFormLayout 3 from PyQt5.QtGui import QIntValidator, QDoubleValidator, QF 阅读全文
posted @ 2020-08-01 09:48 胸怀丶若谷 阅读(132) 评论(0) 推荐(0) 编辑
摘要:1 """输入掩码""" 2 3 import sys 4 from PyQt5.QtWidgets import QApplication, QLineEdit, QWidget, QFormLayout 5 6 class lineEditDeom(QWidget): 7 8 def __ini 阅读全文
posted @ 2020-08-01 09:31 胸怀丶若谷 阅读(359) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示