jackfrued / jackfrued/Python-100-Days
09.面向对象进阶.md:缺一行
Open
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 187k
- Forks
- 55.8k
- PR merge metrics
- No merged PRs in 30d
Description
10%的概率使用究极必杀技(如果魔法值不足则使用普通攻击)
else:
if u.huge_attack(m):
print('%s使用究极必杀技虐了%s.' % (u.name, m.name))
else:
print('%s使用普通攻击打了%s.' % (u.name, m.name))
print('%s的魔法值恢复了%d点.' % (u.name, u.resume()))
如果魔法值不足则使用普通攻击
缺一个:u.attack(m)
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
Open 09.面向对象进阶.md and inspect the shown battle example where the fallback branch handles insufficient magic. Restore the missing u.attack(m) line, then review the rendered code to confirm the normal-attack path is complete and matches the surrounding explanation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100