K tomu "try:" ti chybí "except:". PM
2016-07-26 21:32 GMT+02:00 <ales.hrub...@gmail.com>: > #!/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