zoukankan      html  css  js  c++  java
  • python3.x中的33个保留字

    1 Python 3.6.8 (default, Oct  7 2019, 12:59:55) 
    2 [GCC 8.3.0] on linux
    3 Type "help", "copyright", "credits" or "license" for more information.
    4 >>> import keyword
    5 >>> keyword.kwlist
    6 ['False', 'None', 'True', 'and', 'as', 'assert', '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']

    Python3.7以后又增加了两个关键字:async和await,现在总共35个关键字。

    1 Python 3.7.3 (default, Apr  3 2019, 19:16:38) 
    2 [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
    3 Type "help", "copyright", "credits" or "license" for more information.
    4 >>> import keyword
    5 >>> keyword.kwlist
    6 ['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']

    随后更新.....

  • 相关阅读:
    Golang string slice
    Golang 切片
    Golang 数组
    Golang随机数
    如何才能轻松地分析日志?
    Linux 环境下 gzip 的加解密命令
    谁掳走了 nginx.pid 文件?
    这个 'ip' 竟然把我搞蒙圈了……
    Mysql 连接路径 url 参数解析
    C# 接口生成工具Swagger用法
  • 原文地址:https://www.cnblogs.com/cpl9412290130/p/9758413.html
Copyright © 2011-2022 走看看