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
Python Code Statement / Comment Method
dict
default foreach
foreach .items()
datatime
String(ISO8601) to Datetime
Datetime to Unix timestamp
datetime to ISO8601 String
+10天
兩個日期相差(天 / 秒)
UTC+0
timestamp to datetime
format code
parse 自訂格式
JSON
Json String to dict
dict to JSON String
escape unescape
url
特殊寫法/語法糖
range()
List
用 * 重複多個
加入另一個 List
for取得list index
find by
max by
sort
output :
Class Type
取得物件的 Class / Type
Type Callable
File
取得目前腳本當前path
取得目錄下的檔案列表
OR
跨平台Path寫法
read file all content
save file
Try Exception
泛型
類別泛型
方法泛型
指定泛型是否屬於某個type
映射 Reflection
型別確認
判斷是否有該屬性
動態讀取python 檔案的發法
emum
Basic Enum
String Enum (str Enum)
tags:
python