---
# System prepended metadata

title: 2023/04/17 社課共筆
tags: [社課]

---

---
title: 2023/04/17 社課共筆
tags: 社課
---
## [111 下] Flask 短網址生成器
:::warning
- 社課資源: 
    - [簡報](https://hackmd.io/@Miyago9267/SkEGXFtf2)
    - [IDE 環境](https://colab.research.google.com/drive/1_o4zgGDZIYMYVrw3pEkyEgKNxai5YHQE?usp=sharing)
- [slido](https://app.sli.do/event/dGCbY5YaZ4WLM9WkyaGyJX)
- [回饋表單](https://forms.gle/UnfRv9j2e2DmV2HW8)

:::
![](https://i.imgur.com/kg090Y0.png =50%x)

#### authtoken: 
- 2OVqE05yk3Z1FOIaaopQgUMUpmL_6tkzYMMNRHyfrnXqNDLF2


```jsx=
<!DOCTYPE html>
<html>
<head>
    <title>短網址生成器</title>
</head>
<body>
    <h1>短網址生成器</h1>
    <form method="post">
        <label for="url">輸入長網址：</label>
        <input type="text" name="url" id="url">
        <input type="submit" value="產生短網址">
    </form>
    {% if short_url %}
        <p>短網址：<a href="{{ short_url }}">{{ short_url }}</a></p>
    {% endif %}
</body>
</html>
```