码迷,mamicode.com
首页 > 其他好文 > 详细

11.3du

时间:2017-11-03 16:46:42      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:out   import   min   gif   ref   doc   main   lin   nav   

 

1.-3

from flask import Flask,render_template

app = Flask(__name__)


@app.route(/)
def index():
    return render_template(index.html)

@app.route(/login/)
def login():
    return render_template(login.html)

@app.route(/regist/)
def regist():
    return render_template(regist.html)

if __name__ == __main__:
    app.run(debug=True)

4-6

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>base</title>
    <link rel="stylesheet" href="../static/css/13.css" type="text/css">
    <script src="../static/JS/b.js"></script>

</head>
<body id="myBody">
<nav>
    <img id="myOnOff" onclick="mySwitch()"
         src="http://www.runoob.com/images/pic_bulbon.gif" width="50px">
  <a href="{{ url_for(‘index‘) }}">首页</a>
    <a href="{{ url_for(‘login‘) }}">登录</a>
    <a href="{{ url_for(‘regist‘) }}">注册</a>
</nav>
<div class="area">

</div>


    <div class="img">
        <a href="https://image.baidu.com/search/detail?ct=503316480&z=0&ipn=false&word=%E8%B0%A2%E5%A8%9C%E7%85%A7%E7%89%87&hs=2&pn=2&spn=0&di=201792667560&pi=0&rn=1&tn=baiduimagedetail&is=0%2C0&ie=utf-8&oe=utf-8&cl=2&lm=-1&cs=1700013275%2C2707464521&os=212143778%2C3969242451&simid=3030103568%2C3593025267&adpicid=0&lpn=0&ln=30&fr=ala&fm=&sme=&cg=star&bdtype=0&oriquery=%E8%B0%A2%E5%A8%9C%E7%85%A7%E7%89%87&objurl=http%3A%2F%2F08.imgmini.eastday.com%2Fmobile%2F20161229%2F20161229095440_3868fdb5ac69a50dd044a49c734d0dc9_2.jpeg&fromurl=ippr_z2C%24qAzdH3FAzdH3Fooo_z%26e3Bzivx_z%26e3BvvAzdH3FjgpAzdH3Fz5g2ytAzdH3Fda8mAzdH3F8ddlAzdH3Fda989b_z%26e3Bip4s&gsm=0">
            <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1509632960399&di=07fd323383d15c14bba1f93e266bfbe3&imgtype=0&src=http%3A%2F%2F08.imgmini.eastday.com%2Fmobile%2F20161229%2F20161229095440_3868fdb

1.-3

from flask import Flask,render_template

app = Flask(__name__)


@app.route(/)
def index():
    return render_template(index.html)

@app.route(/login/)
def login():
    return render_template(login.html)

@app.route(/regist/)
def regist():
    return render_template(regist.html)

if __name__ == __main__:
    app.run(debug=True)

4-6

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>base</title>
    <link rel="stylesheet" href="../static/css/13.css" type="text/css">
    <script src="../static/JS/b.js"></script>

</head>
<body id="myBody">
<nav>
    <img id="myOnOff" onclick="mySwitch()"
         src="http://www.runoob.com/images/pic_bulbon.gif" width="50px">
  <a href="{{ url_for(‘index‘) }}">首页</a>
    <a href="{{ url_for(‘login‘) }}">登录</a>
    <a href="{{ url_for(‘regist‘) }}">注册</a>
</nav>
<div class="area">

</div>


    <div class="img">
        <a href="https://image.baidu.com/search/detail?ct=503316480&z=0&ipn=false&word=%E8%B0%A2%E5%A8%9C%E7%85%A7%E7%89%87&hs=2&pn=2&spn=0&di=201792667560&pi=0&rn=1&tn=baiduimagedetail&is=0%2C0&ie=utf-8&oe=utf-8&cl=2&lm=-1&cs=1700013275%2C2707464521&os=212143778%2C3969242451&simid=3030103568%2C3593025267&adpicid=0&lpn=0&ln=30&fr=ala&fm=&sme=&cg=star&bdtype=0&oriquery=%E8%B0%A2%E5%A8%9C%E7%85%A7%E7%89%87&objurl=http%3A%2F%2F08.imgmini.eastday.com%2Fmobile%2F20161229%2F20161229095440_3868fdb5ac69a50dd044a49c734d0dc9_2.jpeg&fromurl=ippr_z2C%24qAzdH3FAzdH3Fooo_z%26e3Bzivx_z%26e3BvvAzdH3FjgpAzdH3Fz5g2ytAzdH3Fda8mAzdH3F8ddlAzdH3Fda989b_z%26e3Bip4s&gsm=0">
            <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1509632960399&di=07fd323383d15c14bba1f93e266bfbe3&imgtype=0&src=http%3A%2F%2F08.imgmini.eastday.com%2Fmobile%2F20161229%2F20161229095440_3868fdb5ac69a50dd044a49c734d0dc9_2.jpeg">
        </a>

<br>
<br>

</body>
</html>

技术分享

 

11.3du

标签:out   import   min   gif   ref   doc   main   lin   nav   

原文地址:http://www.cnblogs.com/wuyishan/p/7778864.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!