11 2019 档案
摘要:1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 # @Time : 2019/11/12 14:21 4 # @Author : zoulixiang 5 # @Site : 6 # @File : Rsync_day_tom.py 7 # @
阅读全文
摘要:#类的继承 class As1(): def As2(self): print("he11...") class As2(As1): def As2(self): print("he22 ....") a1 = As2() a1.As2()
阅读全文
摘要:1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 # @Time : 2019/11/2 20:53 4 # @Author : zoulixiang 5 # @Site : 6 # @File : s2.py 7 # @Software: PyCharm 8 9 from flask import Flask,render_template,
阅读全文
摘要:1 from flask import Flask 2 #实例化Flask对象 3 app = Flask(__name__) #传入当前的文件名__name__ 4 5 #将‘/’ 和函数index的对应关系添加到路由中 6 """ 7 { 8 '/':index 9 } 10 """ 11 12 @app.route('/') 13 def hello_world(): 14 return '
阅读全文