jackfrued / jackfrued/Python-100-Days
连接数据库查询员工哪里。__str__ 这个函数里面有问题。
Open
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 187k
- Forks
- 55.8k
- PR merge metrics
- No merged PRs in 30d
Description
6.分页查询员工信息。
def str(self):
return f'\n编号:{self.no}\n姓名:{self.name}\n职位:{self.job}\n月薪:{self.sal}\n'
应改为:
def str(self):
return f'\n编号:{self._no}\n姓名:{self._name}\n职位:{self._job}\n月薪:{self._sal}\n'
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 with the employee display code in section 6, specifically the shown str method. Compare the attributes used in the current and proposed return strings, then verify that paginated employee information displays correctly using the underscored fields.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100