註解風格:
#+一個空格是註解
#接著程式是停止程式
a=5
b=7
temp=a # 用新的變數暫存a
a=b # 把a連接到b
b=temp # 把b連接到新的變數
a=7
b=5
a,b=b,a # 與上面相同效果
在funtion內的就是local變數
在funtion外的就是global變數
收多個參數,用來做一個運算,回傳一個結果
https://drive.google.com/file/d/1PiN8yS6Fs89HUSmy5wY_nfk9_Su2J9st/view?usp=sharing
解壓縮後用jupyter lab開啟檔案。
請小心不要覆蓋到你自己的.py文件
建議在jupyter lab的執行目錄創一個資料夾放
如下面:
若筆記內有發現錯誤隨時可以登入後在這邊留言~
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.
Syncing