selfteaching / selfteaching/selfteaching-python-camp

Day07 关于导入stats_word模块的问题

Open
#2,115 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
151
Forks
875
PR merge metrics
No merged PRs in 30d

Description

今天的作业,在导入stats_word模块的时候,一开始直接导入
import stats_word 结果显示error 模块不存在
好像记得有个from 于是写成了下面这样:
import stats_word form mymoudle
还是报错,这时正好看到群里有人发了信息,打开连接一看,是issue中关于这个问题的,原来是from在前,于是改过来,结果貌似正常了。就是不知道自己写的代码是不是对的

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Day07 exercise and the referenced stats_word module, then inspect the import statements shown in the issue, including the attempted mymoudle form. Confirm whether the module is available in the exercise setup and whether the final import runs successfully; done means the correct import is identified and the original error is explained.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
developer-experience
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.