zoukankan      html  css  js  c++  java
  • python 查看所有的关键字

    一 查看所有的关键字:help("keywords")

    复制代码
    Here is a list of the Python keywords.  Enter any keyword to get more help.

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

    二 其他

    查看python所有的modules:help("modules")

    单看python所有的modules中包含指定字符串的modules: help("modules yourstr")

    查看python中常见的topics: help("topics")

    查看python标准库中的module:import os.path + help("os.path")

    查看python内置的类型:help("list")

    查看python类型的成员方法:help("str.find") 

    查看python内置函数:help("open")

  • 相关阅读:
    网站初学笔记1
    如何在新项目中使用曾经创建的用户控件
    C#用户控件的一些尝试
    MVC的含义
    Chrome浏览器面板基础了解
    VScode快捷键
    Windows中的键盘快捷方式
    node.js状态码
    JavaScript小结
    Truncate a string
  • 原文地址:https://www.cnblogs.com/ltz150/p/7358023.html
Copyright © 2011-2022 走看看