Python中的关键字和内置函数

        Python包含一系列关键字和内置函数,给变量命名时,知道这些关键字和内置函数非常重要。变量名不能是关键字,也不应该是内置函数。

1、Python中的关键字


Python中的关键字

FalseNoneTrue
andasassert
breakclasscontinue
defdelelif
elseseceptfinnally
forfromglobal
ifimportin
isllambdanonlocal
notorpass
raisereturntry
whilewithyield

其中关键字的具体含义和用法放在文末。


2、Python中的内置函数


Python中的内置函数
abs()all()any()basestring()
bin()bool()bytearray()callable()
chr()classmethod()cmp()compile()
complex()delattr()dict()dir()
divmod()enumerate()eval()execfile()
file()filter()float()format()
frozenset()getattr()globals()hasattr()
hash()help()hex()id()
input()int()isinstance()issubclass()
iter()len()list()locals()
long()map()max()memoryview()
min()next()object()oct()
open()ord()pow()print()
property()range()raw_input()reduce()
reload()repr()reversed()round()
set()setattr()slice()sorted()
staticmethod()str()sum()super()
tuple()type()unichr()unicode()
vars()xrange()zip()__import__()
apply()buffer()coerce()intern()

其中内置函数的用法也附在文末。



1、Python关键字大纲

2、Python关键字用法

3、Python内置函数(Python官网)

4、Python内置函数整理


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小白的高手之路

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值