In [ ]:
max_num("9512983", 1) # "9"
max_num("9512983", 3) # "998"
max_num("9512983", 7) # "9512983"
In [ ]:
POST = {
u"page[1][1]['id']": [u'baloes_bd_8_1'],
u"page[0][1]['text']": [u'Mum, dad! Look, the school email. '],
u"page[1][0]['id']": [u'baloes_bd_9_1'],
u"page[0][1]['id']": [u'baloes_bd_6_1'],
u"page[0][0]['id']": [u'baloes_bd_5_1'],
u'next': [u'/mycontent/5910974510923776'],
u"page[0][0]['text']": [u'Some time later\u2026'],
u'space_id': [u'5910974510923776'],
u"page[1][0]['text']": [u'You open the email, Luana. \u2028It\u2019s for you!'
],
u"page[1][1]['text']": [u'Me too!'],
u'skip_editor': [u'1'],
}
Stwórz listę stron, która będzie zawierała kolejne zawartości 'text'.
In [ ]:
[
[u'Some time later\u2026', u'Mum, dad! Look, the school email.'],
[u'You open the email, Luana. \u2028It\u2019s for you!', u'Me too!']
]
Źródło: http://www.unit1.pl/349,txt (2018-02-12)
Wynik: Droga w labiryncie, która prowadzi z pola s do wyjścia.