| From | To | Expression |
|---|
It has been brought to the management’s attention that some individuals have been using foul language in the course of normal conversation between employees. Due to complaints from some of the easily offended workers, this conduct will no longer be tolerated.
The management does, however, realize the importance of each person being able to properly express their feelings when communicating with their fellow employees. Therefore, the management has compiled the following code phrases so that the proper exchange of ideas and information can continue.
OLD PHRASE NEW PHRASE
No fucking way ......................................... I’m not certain that’s feasible.
You’ve got to be shitting me ........................... Really.
| #!/usr/bin/env python | |
| # poswap.py | |
| # | |
| # Copyright (C) 2013 Santiago M. Mola | |
| # Released under the terms of the MIT License. | |
| # | |
| """ | |
| Swaps the source and target language in a Gettext PO file. | |
| Learn more at http://mola.io/2013/09/17/swapping-languages-in-gettext-po-file |
| #!/usr/bin/python | |
| import ast, _ast, os | |
| for root, dirs, files in os.walk('.'): | |
| for name in files: | |
| if name.endswith('.py'): | |
| full = os.path.join(root, name) | |
| t = ast.parse(open(full).read()) | |
| for n in ast.walk(t): | |
| if isinstance(n, _ast.Str) and not isinstance(n.s, unicode): |
статья с описанием - http://habrahabr.ru/post/233243/
Поулчаем список городов http://weather.yandex.ru/static/cities.xml https://pogoda.yandex.ru/static/cities.xml