安装 pip install alembic 初始化 alembic init alembic 修改配置alembic.ini sqlalchemy.url = driver://user:pass@localhost/dbname 修改env.py import sys from logging. ...
分类:
数据库 时间:
2020-07-19 11:23:58
阅读次数:
76
元组 #组内元素可读,不能被改变 tup1=() #空元组 tup2=(1,) #一个元素后添加逗号 嵌套列表 a = [[1,2,3],'lyyyyy',4,(2,3,4)] b = a[0] b[0] = 1 → a[0][0] = 1 小技巧 1、if s.isdigit():s = int( ...
分类:
编程语言 时间:
2020-07-19 00:59:32
阅读次数:
269
(env) D:\python_learn\meiduo_project\meiduo_mall>celery -A celery_tasks.main worker -l info celery@CZZI-BBMGSW v4.4.6 (cliffs) ***** -- ******* Window ...
分类:
其他好文 时间:
2020-07-19 00:50:02
阅读次数:
73
(一)pip安装 pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple PyQt5 其中 -i后面的地址是国内的源,不加下载就会很慢 (二)通过新立得软件包安装python3-pyqt5 (三)安装qt设计师 通过新立得安装qttools5 ...
分类:
系统相关 时间:
2020-07-19 00:46:24
阅读次数:
167
# 格式化字符串: 在字符串前加上 f 或者 F 使用 {变量名} 的形式来使用变量名的值 year = 2020 event = 'Referendum' value = f'Results of the {year} {event}' print(f'Results of the {year} ...
分类:
编程语言 时间:
2020-07-19 00:35:57
阅读次数:
139
最近尝试facenet做识别,没有从头复现,刚好在GitHub找到一个可以已经封装好的repo,使用起来也特别方便。项目地址 https://github.com/timesler/facenet-pytorch 。安装使用它只需直接pip install facenet-pytorch即可。 fa ...
分类:
Web程序 时间:
2020-07-19 00:34:09
阅读次数:
168
一、用户交互 1.1 什么是用户交互 用户交互就是人往计算机中输入数据,计算机输出结果 1.2 为什么要与用户交互 为了让计算机能够像人一样与用户沟通交流 比如,过去我们去银行取钱,用户需要把帐号密码告诉柜员,而现在,柜员被ATM机取代,ATM机就是一台计算机,所以用户同样需要将帐号密码告诉计算机, ...
分类:
编程语言 时间:
2020-07-18 22:59:11
阅读次数:
106
poetry是一个Python虚拟环境和依赖管理的工具,之前用pipenv,最近学习httprunner时,接触了poetry。poetry和pipenv类似,另外还提供了打包和发布的功能。官方文档:python-poetry.org/docs/ python项目部署:poetry管理本地环境,上线 ...
分类:
编程语言 时间:
2020-07-18 22:54:52
阅读次数:
262
用循环依次对list中的每个名字打印出 Hello, xxx! L = ['Bart', 'Lisa', 'Adam']x = len(L) for i in range(x): print('Hello,', L[i]) 此处,若直接使用 for i in x 时,编译报错:TypeError: ...
分类:
编程语言 时间:
2020-07-18 22:45:27
阅读次数:
95
python官方文档下载:https://www.python.org/downloads/ 我是使用的是pycharm来学习:https://www.jetbrains.com/pycharm/download/由于我这边打不开官方的网站所以就下载了其他版本。 python语法: Python 缩 ...
分类:
编程语言 时间:
2020-07-18 22:44:32
阅读次数:
254