![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
yanglun005
这个作者很懒,什么都没留下…
展开
-
文件上传,报错:IOError: [Errno 13] Permission denied
文件上传,报错:IOE error路径错误提示:E:\pythonProject1\static/uploads原代码如下:f=request.files['file']basepath = path.abspath(path.dirname(__file__))upload_path=path.join(basepath,"static/uploads")f.save(upload_path,secure_filename(f.filename))待上传文件目录:1)后半段显然与前面不原创 2020-09-30 18:15:31 · 1120 阅读 · 0 评论 -
python 使用psycopg2执行sql语句传参的正确样例
python 使用psycopg2执行sql语句传参的正确样例docker_sqlconnect.py# -*- coding: UTF-8 -*-import psycopg2class docker_sqlconnect(): @staticmethod def db_connect(): # 建立数据库连接 conn = psycopg2.connect(database="flow", user="postgres", password="postgre原创 2020-09-19 22:21:19 · 2212 阅读 · 0 评论