Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > cz.comp.lang.python > #3097

prosím o radu

Newsgroups cz.comp.lang.python
Date 2016-07-26 12:32 -0700
Message-ID <3ad0c1bf-de0f-4645-8a59-8991787bf11a@googlegroups.com> (permalink)
Subject prosím o radu
From ales.hruby33@gmail.com

Show all headers | View raw


#!/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

Back to cz.comp.lang.python | Previous | NextNext in thread | Find similar


Thread

prosím o radu ales.hruby33@gmail.com - 2016-07-26 12:32 -0700
  Re: prosím o radu Aleš Hrubý <ales-hruby@email.cz> - 2016-07-26 12:53 -0700
  Re: prosím o radu Aleš Hrubý <ales-hruby@email.cz> - 2016-07-26 12:54 -0700
    Re: [python] prosím o radu Petr Messner <petr.messner@gmail.com> - 2016-07-26 21:56 +0200
  Re: [python] prosím o radu Matěj Cepl <mcepl@cepl.eu> - 2016-07-29 09:35 +0200

csiph-web