
python
莫言莫语123
这个作者很懒,什么都没留下…
展开
-
cuda学习命令
查看显卡使用情况:nvidia-smi设置显卡号:export CUDA_VISIBLE_DEVICES=“1”原创 2021-04-13 21:20:14 · 482 阅读 · 0 评论 -
解决pycharm下载速度太慢的问题
命令:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xxx常用库链接:清华:https://pypi.tuna.tsinghua.edu.cn/simple阿里云:http://mirrors.aliyun.com/pypi/simple/原创 2020-02-17 23:14:38 · 8073 阅读 · 0 评论 -
PyQt —— 使用pipenv搭建pyqt运行时的虚拟环境
1.cmd安装pipenvpip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv2. 创建一个空文件夹 暂时命名为 PyQt 点进cmd,并进入该文件路径中 如 F:\PythonProject\PyQt5 pipenv --threepipenv shell //激活虚拟环境 然...原创 2021-04-26 22:07:14 · 374 阅读 · 0 评论 -
pymysql数据库连接相关知识
为了方便下次地使用,现将其记录下来:主要思路是将其封装起来:import pymysqlclass MysqlOperation(): def __init__(self, host='localhost', user='root', pwd='', port=3306, db='test'): self.host = host self....原创 2020-05-04 16:49:15 · 205 阅读 · 0 评论 -
python文件打包命令
1. 在python script 目录里面,安装 pyinstaller包2.cmd 进入程序所在目录3.pyinstaller -F -w main.py4. 进入程序所在目录/dist/main.exe 双击即可打开原创 2020-04-22 23:40:22 · 265 阅读 · 0 评论 -
解决ui转换为py文件时报错的问题
#!/usr/bin/python3# -*- coding: utf-8 -*-import sys# 这里我们提供必要的引用。基本控件位于pyqt5.qtwidgets模块中。from PyQt5.QtWidgets import QApplication, QMainWindowimport loginif __name__ == '__main__': # 每一...原创 2020-03-17 15:07:13 · 1606 阅读 · 0 评论