博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
python关键字和保留字_Python关键字
阅读量:2551 次
发布时间:2019-05-11

本文共 1444 字,大约阅读时间需要 4 分钟。

python关键字和保留字

关键词 (Keywords)

Keywords are the reserved words in Python programming language (and, any other programming languages like C, C++, Java, etc) whose meanings are defined and we cannot change their meanings. In python programming languages, keywords are the case sensitive.

关键字是Python编程语言(以及其他任何编程语言,如C,C ++,Java等)中的保留字,其含义已定义,我们无法更改其含义。 在python编程语言中,关键字区分大小写。

Note: We cannot use any reserved words (which are known as Keywords) as an identifier (like a variable name, function name, etc).

注意 :我们不能使用任何保留字(称为关键词 )作为标识符(如变量名,函数名等)。

Python关键字列表 (Python keyword list)

Here is the list of Python keywords (the list can be varied based on the Python versions),

这是Python关键字的列表(该列表可以根据Python版本而有所不同),

In Python 2.5

在Python 2.5中

and       del       from      not       while        as        elif      global    or        with         assert    else      if        pass      yield        break     except    import    print                  class     exec      in        raise                  continue  finally   is        return                 def       for       lambda    try

In Python 3.8.1

在Python 3.8.1中

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

Read:

阅读:

Reference:

参考: :

翻译自:

python关键字和保留字

转载地址:http://gyxzd.baihongyu.com/

你可能感兴趣的文章
做项目时的几个感慨(持续更新...)
查看>>
WPF(一)
查看>>
uva 1636 Headshot
查看>>
Java原子变量
查看>>
elment + vue 文件上传
查看>>
c# 窗体开发2 高级控件的使用
查看>>
REDHAT系统创建LVM过程
查看>>
PLC梯形图编程练习
查看>>
算法总结1:K-邻近算法
查看>>
unity, 由Matrix4x4提取Quaternion和Vector3 及 由Quaternion,Vector3构造Matrix4x4
查看>>
6服务器线程池配置
查看>>
thinkPHP实现静态页的方法-buildHtml
查看>>
Openwrt 远程调试
查看>>
dubbo结果缓存机制
查看>>
有些验证码看起来很容易但是没人做自动识别的原因分析
查看>>
用Delphi中的TADOQuery查询Oracle10G中的数据表时,Open时提示"数据类型不被支持"的处理方法...
查看>>
基本知识点
查看>>
socket
查看>>
python中list、tuple、dict、set的使用
查看>>
【c++ primer读书笔记】【第8章】IO流
查看>>