https://github.com/AndyFlower/Python/blob/master/sample/python
前言
如下部分为python关键字,操作符号,格式字符、转义字符等,以后有时间会继续补充进来的别的,再加上一些用法。
python关键字:
and
del
from
not
while
as
elif
global
or
with
assert
else
if
pass
yield
break
except
import
class
exec
in
raise
continue
finally
is
return
def
for
lambda
try
python数据类型:
True
False
None
strings
numbers
floats
lists
字符串转义序列:
\\
\‘
\"
\a
\b
\f
\n
\r
\t
\v
字符串格式化:
%d
%i
%o
%u
%x
%X
%e
%E
%f
%F
%g
%G
%c
%r
%s
%%
操作符号:
+
-
*
**
/
//
%
<
>
<=
>=
==
!=
<>
()
[]
{}
@
,
:
.
=
;
+=
-=
*=
/=
//=
%=
**=