摘要: 1.Flask get @app.route('/get',methods=["get"]) def get(): print(f"request.args{request.args}") return 'GET!' View Code 2.Flask post @app.route('/post' 阅读全文
posted @ 2021-11-10 15:52 3ξ 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 1.字符串对齐:左对齐,右对齐,居中 # 第一个参数是一共占多少位,第二个参数默认是空格 #居中显示的话如果左右不对称,他会靠左 print("wusen".center(10,"-")) print("wusen".ljust(10,"-")) print("wusen".rjust(10,"-" 阅读全文
posted @ 2021-11-10 15:52 3ξ 阅读(44) 评论(0) 推荐(0) 编辑