jackfrued / jackfrued/Python-100-Days
工资结算部分代码
Open
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 187k
- Forks
- 55.8k
- PR merge metrics
- No merged PRs in 30d
Description
最后在调用emp.get_salary()时,带括号会显示TypeError: 'float' object is not callable
去掉括号代码正常工作,请教一下这是什么情况
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the example that defines emp and get_salary, then inspect whether get_salary is a value or a callable method at the point of use. Done means the example or its explanation clearly resolves why emp.get_salary and emp.get_salary() behave differently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100