上一页 1 2 3 4 5 6 7 8 9 ··· 28 下一页

2023年7月23日

摘要: route的三种用法: 知识点2演示: 默认是支持get,如下图,url中输入参数值 user1时,返回值显示 hello user1: 加上methods参数,指定值为 POST 修改后,只支持post,用get执行会报错: 改为post可以正常运行: 也可以get post都支持 阅读全文
posted @ 2023-07-23 12:06 lip0405 阅读(63) 评论(0) 推荐(0)
 
摘要: 阅读全文
posted @ 2023-07-23 11:26 lip0405 阅读(28) 评论(0) 推荐(0)
 

2023年7月15日

摘要: (9条消息) Pycharm社区版创建Flask项目详解_打代码的苏比特的博客-CSDN博客 阅读全文
posted @ 2023-07-15 14:47 lip0405 阅读(12) 评论(0) 推荐(0)
 
摘要: 打开pycharm,找到Flask进行配置,点击创建; 自动安装好了相关包: static下面放一些静态文件图片、css等,templates下面放置模板 编写好的html文件等; 运行app.py 访问运行结果中的 http://127.0.0.1:5000 页面显示如下 关于app.route 阅读全文
posted @ 2023-07-15 13:59 lip0405 阅读(41) 评论(0) 推荐(0)
 
摘要: 阅读全文
posted @ 2023-07-15 13:23 lip0405 阅读(15) 评论(0) 推荐(0)
 

2023年5月18日

摘要: mysql安装: Win10安装MySQL5.7(图文详解)_51CTO博客_win10安装mysql5.7 下载navicat 若连接mysql报错: 关于连接MySQL 8.0.11 出现2059错误 (baidu.com) 或使用DBeaver连接mysql 创建数据库: 创建表并插入数据: 阅读全文
posted @ 2023-05-18 20:51 lip0405 阅读(42) 评论(0) 推荐(0)
 

2023年5月13日

摘要: # -*- coding: UTF-8 -*- import requests """ Http 工具类封装 """ class RequestUtil: def __init__(self): pass def request(self, url, method, headers=None, pa 阅读全文
posted @ 2023-05-13 18:48 lip0405 阅读(232) 评论(0) 推荐(0)
 
摘要: 1,新建项目时,一定要将这2个选项勾选上 pycharm里venv文件夹变成红色 右击此文件夹选择mark directory as,再点cancel exclusion即可,如下截图: pycharm中Mark Directory as 成 sources root (同文件夹下from ..im 阅读全文
posted @ 2023-05-13 17:42 lip0405 阅读(56) 评论(0) 推荐(0)
 

2023年5月5日

摘要: 1 # -*- coding: UTF-8 -*- 2 3 import requests 4 5 response = requests.get("https://www.baidu.com") 6 7 print(response.text) response = requests.get("h 阅读全文
posted @ 2023-05-05 20:03 lip0405 阅读(267) 评论(0) 推荐(0)
 

2023年4月26日

摘要: setUp tearDown class UserTestCase(unittest.TestCase): @classmethod def setUpClass(cls): print("setup") @classmethod def tearDownClass(cls): print("tea 阅读全文
posted @ 2023-04-26 18:54 lip0405 阅读(9) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 8 9 ··· 28 下一页