時間:2024-01-25 13:10:02 | 來源:網站運營
時間:2024-01-25 13:10:02 來源:網站運營
用python如何寫網頁?有好的教程碼?:在學習爬蟲的過程中,我還學習到了在pytharm中建立網站的一些操作,在這里分享我做的一些筆記from flask import Flask,render_templateapp = Flask(__name__)@app.route('/')def hello_world(): return render_template() #引用的index文件路徑if __name__ == '__main__': app.run(debug=True)
這是基本的一些建立,接下來就可以網這個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的基本操作,想要了解更多的話可以在網頁瀏覽器點擊F12即可查看網頁源碼,網頁制作的所有信息都在里面關鍵詞:教程