or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
NKUST ITC 108-1 Python[5]
https://python-slide.macs1207.dev
2019/11/26
tags:
NKUST ITC
Python 社課
Github
剩下的時間安排
Flask
簡介一下
Python的後端框架相當多,比較常見的
Flask是比較輕量化的那種
首先安裝
那麼 Flask怎麼用呢
這時,瀏覽器打開 http://127.0.0.1:5000
預設port是5000
順便提一下網址格式
如果想指定port
http://127.0.0.1:8080
還記得GET method嗎
http://127.0.0.1:5000/?name=nameeee
另一種GET
http://127.0.0.1:8080/namee
那 POST呢
請用requests對 http://127.0.0.1:8080 post看看
怎麼讓一個route應付兩種method
最後的練習
Discord
Telegram
作者
參考資料