python的关键词有哪些?

2026-02-15 04:03:14

1、跟java等语言一样,在python中有33个关键字,注意在python中,False、None和True的首字母大写,其他关键字全部小写。

2、关键字有:False      class      finally    is         return


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

3、想学习python的朋友加油吧!

猜你喜欢