時間:2023-07-26 08:18:01 | 來源:網(wǎng)站運營
時間:2023-07-26 08:18:01 來源:網(wǎng)站運營
Python——學習網(wǎng)頁制作:在學習爬蟲的過程中,我還學習到了在pytharm中建立網(wǎng)站的一些操作,在這里分享我做的一些筆記from flask import Flask,render_templateapp = Flask(__name__)@app.route('/')def hello_world(): return render_template() #引用的index文件路徑if __name__ == '__main__': app.run(debug=True)
這是基本的一些建立,接下來就可以網(wǎng)這個index文件里輸入一些信息了</head><body><div> <ul> <li>no.1 <li>no.1 <li>no.1 </ul> <ol> <li>no.1 <li>no.1 <li>no.1 </ol><div></body></html>
<body><h1>h1標簽</h1><h2>h2標簽</h2><h3>h3標簽</h3><h4>h4標簽</h4><h5>h5標簽</h5></body>
<a href="https://www.baidu.com">百度的標簽</a>
在body中輸入文本信息<p>這是一個標簽</p><p>這是一個標簽</p>
以上是一些js的基本操作,想要了解更多的話可以在網(wǎng)頁瀏覽器點擊F12即可查看網(wǎng)頁源碼,網(wǎng)頁制作的所有信息都在里面關(guān)鍵詞:學習
微信公眾號
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。