【问题标题】:How can I import http.client module in PyCharm 2016.3 and Python 3.6?如何在 PyCharm 2016.3 和 Python 3.6 中导入 http.client 模块?
【发布时间】:2017-01-29 06:08:28
【问题描述】:

我想在 PyCharm 2016.3 中导入 http.client 模块(我使用的是 Python 3.6)。但是,“项目解释器”类别的“添加”部分中没有模块名称“http.client”。如何导入模块?

请帮忙。

【问题讨论】:

    标签: python python-3.x pycharm http.client


    【解决方案1】:

    它是 Python 中的内置模块;可以直接导入:

    >>> import http.client
    >>> http.client
    <module 'http.client' from '/usr/lib/python3.5/http/client.py'>
    

    【讨论】:

      猜你喜欢
      • 2020-08-26
      • 2023-03-30
      • 2018-10-10
      • 2018-11-27
      • 2019-06-04
      • 2018-10-23
      • 1970-01-01
      • 2013-06-01
      • 2021-05-07
      相关资源
      最近更新 更多