jackfrued / jackfrued/Python-100-Days

连接数据库查询员工哪里。__str__ 这个函数里面有问题。

Open
#588 0 comments 0 reactions 0 assignees View on GitHub

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.