aha, sory. toho sem si vubec nevsim... 'aknerats'[::-1]
On Jul 26, 2016 9:41 PM, "Honza Král" <honza.k...@gmail.com> wrote: > Statement 'try' lze pouzit jen v kombinaci s 'except' nebo 'finally'. Na > posledni radku staco doplnit: > except: > pass > > Tak aby except zacinalo stejne odsazene jako try a pass o 4 mezery dale > > On Jul 26, 2016 21:38, "starenka ." <staren...@gmail.com> wrote: > >> zkus smazat uplne vsechno od konce souboru po tu posledni zavorku, zrejme >> ram mas nekde tabulatory/mezery navic >> >> 'aknerats'[::-1] >> >> On Jul 26, 2016 9:35 PM, <ales.hrub...@gmail.com> wrote: >> >>> #!/usr/bin/env python >>> >>> import RPi.GPIO as GPIO >>> import time >>> >>> promena=3 >>> GPIO.setmode(GPIO.BCM) >>> GPIO.setup(4, GPIO.OUT) >>> while True: >>> >>> try: >>> time.sleep(1) >>> >>> if i == 1: >>> GPIO.output(4, False) >>> else: >>> GPIO.output(4, True) >>> >>> >>> hlásí to chybu >>> ./test.py >>> File "./test.py", line 18 >>> >>> ^ >>> IndentationError: unexpected unindent >>> >>> vůbec nemohu najit co to je kdyz ten radek ani neexistuje :-( děkuji >>> _______________________________________________ >>> Python mailing list >>> python@py.cz >>> http://www.py.cz/mailman/listinfo/python >>> >>> Visit: http://www.py.cz >>> >> >> _______________________________________________ >> Python mailing list >> python@py.cz >> http://www.py.cz/mailman/listinfo/python >> >> Visit: http://www.py.cz >> > > _______________________________________________ > Python mailing list > python@py.cz > http://www.py.cz/mailman/listinfo/python > > Visit: http://www.py.cz >
_______________________________________________ Python mailing list python@py.cz http://www.py.cz/mailman/listinfo/python Visit: http://www.py.cz