Python各種符號
一、Keywords(關鍵字)
-
· and
· del
· from
· not
· while
· as
· elif
· global
· or
· with
· assert
· else
· if
· pass
· yield
· break
· except
· import
-
· print
-
· class
· exec
· in
· raise
· continue
· finally
· is
· return
· def
· for
· lambda
· try
二、數據類型
針對每一種數據類型, 都舉出一些例子來,例如針對string,你可以舉出一些字符串,針對 number ,你可以舉出一些數字。
-
· True
· False
· None
· strings
· numbers
· floats
· lists
三、字符串轉義序列(Escape Sequences)
對於字符串轉義序列, 你需要再字符串中應用它們, 確認自己清楚地知道它們的功能。
-
· \\
· \'
· \"
· \a
· \b
· \f
-
· \n
· \r
· \t
· \v
四、字符串格式化 (String Formats)
一樣的,在字符串中使用它們,確認它們的功能。
-
· %d
· %i
· %o
· %u
· %x
· %X
· %e
· %E
· %f
· %F
· %g
· %G
· %c
· %r
· %s
· %%
五、操作符號
有些操作符號你可能還不熟悉, 不過還是一一看過去, 研究一下它們的功能, 如果你研究不出來也沒關系,記錄下來日后解決。
- · +
· -
· *
· **
· /
· //
· % - · <
· >
· <=
· >=
· ==
· !=
· <>
· ( )
· [ ]
· { }
· @
· ,
· :
· .
· =
· ;
· +=
· -=
· *=
· /=
· //=
· %=
· **=