pip freeze > requirements.txt
, потом после переноса на другой ПК, запустить pip install -r requirements.txt
with open('source.txt', 'r') as source, open('result.txt', 'w') as result_file:
lines = source.readlines()
result = ', '.join(f'"{x}": "{y}"' for x, y in zip(*lines))
result_file.write(result)
workers = {
'empl1': '13150',
'empl2': '11100',
'empl3': '19500',
'empl4': '3000',
'empl5': '18000',
'empl6': '8585',
'empl7': '1',
'empl8': '1',
'empl9': '7000',
'empl10': '7070',
'empl11': '2730',
'empl12': '11615',
'empl13': '10000',
'empl14': '7170',
'empl15': '99999999',
'empl16': '11000',
'empl17': '4300',
'empl18': '666',
'empl19': '54000'
}
sorted_dict = sorted(workers.items(), key=lambda worker: int(worker[1]))
print(sorted_dict)
<nav>
<a href="">Products</a>
<a href="">Services</a>
<a href="">Contacts</a>
</nav>
a {
text-decoration: none;
color: black;
}
a::after {
content: "|";
margin-left: 5px;
}
nav a:last-child::after {
content: "";
}