【Python系列】python关键字、符号、数据类型等分类

本文总结了Python的基础语法,包括关键字、数据类型、字符串转义序列、格式化以及操作符号等内容。适合初学者快速掌握Python的基本要素。
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
print
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
%%
操作符号:
+
-
*
**
/
//
%
<
>
<=
>=
==
!=
<>
()
[]
{}
@
,
:
.
=
;
+=
-=
*=
/=
//=
%=
**=

转载于:https://www.cnblogs.com/dream-to-pku/p/8279306.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值