• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

繁星点点……

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

查看python中的关键字

1 import keyword
2 print(keyword.kwlist)

显示内容如下:

['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']

posted on 2019-03-13 16:15  天若有情66  阅读(217)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3