daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Jan 26th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. list_cause = {
  2.     'cause_picture': '<img src="{}" class="image" width="300" height="225">',
  3.     'cause_resource': '<p><b>Что отключат:</b> {}<p>',
  4.     'cause_company': '<p><b>Организация:</b> {}<p>',
  5.     'cause_company_phone': '<p><b>Телефон:</b> {}<p>',
  6.     'address': '<p><b>Адрес отключения:</b> {}<p>',
  7.     'type_cause': '<p><b>Тип отключения:</b> {}<p>',
  8.     'cause': '<p><b>Причина отключений:</b> {}<p>',
  9.     'cancel_time': '<p><b>{}</b><p>',
  10.     'begin_time': '<p><b>Когда отключат:</b> {}<p>',
  11.     'end_time': '<p><b>Когда включат:</b> {}<p>'
  12. }
  13.  
  14. cause = {'type_cause': 'аварийное'}
  15.  
  16.  
  17. for l in list_cause:
  18.     if l in cause.keys():
  19.         print( list_cause[l].format(cause[l]))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top