Skip to content

add control_work_python#31

Open
Quark1111 wants to merge 12 commits intomainfrom
control_work_python
Open

add control_work_python#31
Quark1111 wants to merge 12 commits intomainfrom
control_work_python

Conversation

@Quark1111
Copy link
Owner

No description provided.

@Quark1111 Quark1111 requested a review from chernishev December 20, 2025 12:59
Copy link

@Godrik0 Godrik0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Итого: 24/25

return self.table[index][i][1]
i += 1

raise Exception("Не существующий ключ")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не стоит кидать общий Exception, лучше найти подходящее исключение, в данном случае -- KeyError

for i in range(self.size):
self.table.append([])

def Hash(self, key):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hash -> _hash / _hash_func

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants