1. Učit se
  2. /
  3. Kurzy
  4. /
  5. Python 中的软件工程原理

Connected

cvičení

使用 dir 和 help 探索

一个新方法已添加到 Document 类。该方法是对您在早前练习中编写的 plot_counter() 函数的便捷封装。在本练习中,您将使用 dir() 和 help() 来了解如何使用这个新方法。

Pokyny 1/3

undefined XP
    1
    2
    3
  • import 导入 text_analyzer 包。
  • 将 my_doc 定义为 Document 的一个实例,文本使用 datacamp_tweets 中的内容。datacamp_tweets 已预先加载到您的环境。