Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

homework 4 Fadeev #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

egorfw
Copy link

@egorfw egorfw commented Feb 3, 2022

Домашнее задание 4, задания 1 и 2

1. $ pip show pillow
WARNING: Package(s) not found: pillow

2. ��������� ��������� ������ pillow � ���������� ���������
Copy link
Owner

Choose a reason for hiding this comment

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

следите за кодировками файла - стандартная, рекомендуемая UTF-8

$ virt/Scripts/activate.bat

rufadeeeg@RU01NBFADEEEG01 MINGW64 ~/Onedrive - KROHNE GROUP/������� ����/task_4_1
$ pip freeze
Copy link
Owner

Choose a reason for hiding this comment

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

просто посмотреть можно ещё через pip list

if my_list[i][0] == code:
result = result + float(my_list[i][1])

return(result)
Copy link
Owner

Choose a reason for hiding this comment

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

пробел после return и не нужно значение обрамлять в скобки

Copy link
Owner

Choose a reason for hiding this comment

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

если кода нет в ЦБР, то нужно возвращать None, а Ваша функция возвращает 0.00

Comment on lines +19 to +28
aux_list.append(web_list[i + 2][9])
aux_list.append(web_list[i + 2][10])
aux_list.append(web_list[i + 2][11])
aux_list.append(' ')
aux_list.append(web_list[i + 5][6])
aux_list.append(web_list[i + 5][7])
aux_list.append('.')
aux_list.append(web_list[i + 5][9])
aux_list.append(web_list[i + 5][10])
aux_list.append(web_list[i + 5][11])
Copy link
Owner

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