python3保留字

python3.7保留字:

False None True and as assert async
await break class continue def del elif
else except finally for from global if
import in is lambda nonlocal not or
pass raise return try while with yield

一共35个,做了个表格,以后使用注意点。

查看方法:

import keyword
keyword.kwlist

这里写图片描述

猜你喜欢

转载自blog.csdn.net/weixin_41656968/article/details/80902901