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
9/20 第二堂社課
今日講師:R緯
(Python班)
今日課程主題:
變數
(variable)
四則運算
(four arithmetic operations)
最基本條件判斷
(conditionals)
快速複習
例題0-複習
變數
(Variable)
變數用來儲存資料
宣告變數
[變數名稱] = [變數值]
(變數值可以是任何型別)
四則運算
(four arithmetic operations)
運算符號
Boolean運算 (補充)
(表格用截的絕對不是我懶)
比較運算
(表格用截的絕對不是我懶)
(表格用截的絕對不是我懶)
小知識: ^ (caret) 在程式語言中 無次方的意思
output:
最基本條件判斷
(conditionals)
if, else, elif (else if)
4. 程式將按照順序進行
情況1: 1成立
結果1:
程式碼a-1
程式碼a-2
程式碼a-3
情況2: 1不成立、2成立
結果2:
程式碼b-1
程式碼b-2
情況3: 1不成立、2成立、3也成立
結果3:
程式碼b-1
程式碼b-2
情況4: 1 ,2 ,3均不成立
結果4:
程式碼d-1
程式碼d-2
縮排(Tab)超重要
示範a053
例題1
a006. 一元二次方程式

例題二
Codeforces Round 971 (Div. 4)

電神題
END