上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 44 下一页
摘要: #_*_ encoding: utf-8 _*_ @author: ty hery 2019/12/20 # Flask依赖一个实现wsgi协议的模块:werkzeug from werkzeug.wrappers import Request,Response @Request.applicati 阅读全文
posted @ 2021-04-13 10:28 ty1539 阅读(55) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8 def num_div(num1,num2): try: assert isinstance(num1,int) except AssertionError: print(num1,'num1不是int类型') try: assert isinstance(num2,i 阅读全文
posted @ 2021-04-13 10:18 ty1539 阅读(59) 评论(0) 推荐(0) 编辑
摘要: #_*_ encoding: utf-8 _*_ @author: ty hery 2019/12/20 from flask import Flask, render_template, request, url_for, redirect from flask_sqlalchemy import 阅读全文
posted @ 2021-04-12 23:22 ty1539 阅读(76) 评论(0) 推荐(0) 编辑
摘要: #_*_ encoding: utf-8 _*_ @author: ty hery 2019/12/20 from flask import Flask, request # from werkzeug.routing import BaseConverter app = Flask(__name_ 阅读全文
posted @ 2021-04-12 23:18 ty1539 阅读(1437) 评论(0) 推荐(0) 编辑
摘要: #_*_ encoding: utf-8 _*_ @author: ty hery 2019/12/20 # 打开文件对象 f = open('03.txt','w') # 2,向文件写入内容 try: f.write('去你大爷的\n') print("写入成功了") except Excepti 阅读全文
posted @ 2021-04-12 23:16 ty1539 阅读(127) 评论(0) 推荐(1) 编辑
摘要: #_*_ encoding: utf-8 _*_ @author: ty hery 2019/12/20 from flask import Flask, request, abort, Response, make_response # from werkzeug.routing import B 阅读全文
posted @ 2021-04-12 23:15 ty1539 阅读(781) 评论(0) 推荐(0) 编辑
摘要: 文件夹如下 文件: python进行cgi编程/cgi-bin/main.py #!/usr/bin/env python import cgi,cgitb from jkxy import * form1 = cgi.FieldStorage() num1=form1.getvalue("Num1 阅读全文
posted @ 2021-04-12 23:09 ty1539 阅读(583) 评论(0) 推荐(0) 编辑
摘要: #_*_ encoding: utf-8 _*_ @author: ty hery 2019/12/20 from flask import Flask, url_for, current_app, redirect from werkzeug.routing import BaseConverte 阅读全文
posted @ 2021-04-12 22:56 ty1539 阅读(66) 评论(0) 推荐(0) 编辑
摘要: #_*_ encoding: utf-8 _*_ @author: ty hery 2019/12/20 from flask import Flask, render_template, request from flask_sqlalchemy import SQLAlchemy app = F 阅读全文
posted @ 2021-04-12 22:50 ty1539 阅读(45) 评论(0) 推荐(0) 编辑
摘要: #_*_ encoding: utf-8 _*_ @author: ty hery 2019/12/20 from flask import Flask, render_template, request app = Flask(__name__) @app.route('/index') def 阅读全文
posted @ 2021-04-12 22:40 ty1539 阅读(60) 评论(0) 推荐(0) 编辑
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 44 下一页