Skip to content

Comments

Код Хаффмана#6

Open
Andrew-Kochanov wants to merge 10 commits intomainfrom
hw_9
Open

Код Хаффмана#6
Andrew-Kochanov wants to merge 10 commits intomainfrom
hw_9

Conversation

@Andrew-Kochanov
Copy link
Owner

No description provided.

Copy link
Collaborator

@KubEF KubEF left a comment

Choose a reason for hiding this comment

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

Где тесты? где CI?

with open(output_file, 'w', encoding="utf-8") as file:
file.write(decoded_text)

decode_file("example_none.txt", "example_none_none.txt") No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

Почему это тут?

Comment on lines +62 to +63
if padding == 8:
padding = 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Можно просто % 8

file.write(table)
file.write(encoded_bytes)

encode_file("example.txt", "example_none.txt")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Почему это тут?

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