-
Prima esperienza con pythonScritto daNon Autenticatoil 2014-09-23 16:17:06.0 alle 2014-09-23 16:17:06.0Lancio da Cygwin hello.py:
print "hello, world" (copiato da un tutorial)A@_ ~ $ python hello.py File "hello.py", line 1 print "hello, world" ^ SyntaxError: invalid syntax
-
Re: Prima esperienza con pythonScritto da:
> Lancio da Cygwin hello.py:
>
> print "hello, world" (copiato da un tutorial)
>
>A@_ ~ > $ python hello.py > File "hello.py", line 1 > print "hello, world" > ^ > SyntaxError: invalid syntax
>
>
python --version, python 2 e python 3 non sono compatibili.Young professional woman and busy mom.-
Re: Prima esperienza con pythonScritto daNon Autenticatoil 2014-09-23 17:14:01.0 alle 2014-09-23 17:14:01.0Scritto da: ::1
> Scritto da:
> > Lancio da Cygwin hello.py:
> >
> > print "hello, world" (copiato da un tutorial)
> >
> >A@_ ~ > > $ python hello.py > > File "hello.py", line 1 > > print "hello, world" > > ^ > > SyntaxError: invalid syntax
> >
> >
>
> python --version, python 2 e python 3 non sono compatibili.
Python 3.3.2-
Re: Prima esperienza con pythonScritto da:
> Scritto da: ::1
> > Scritto da:
> > > Lancio da Cygwin hello.py:
> > >
> > > print "hello, world" (copiato da un tutorial)
> > >
> > >A@_ ~ > > > $ python hello.py > > > File "hello.py", line 1 > > > print "hello, world" > > > ^ > > > SyntaxError: invalid syntax
> > >
> > >
> >
> > python --version, python 2 e python 3 non sono compatibili.
>
> Python 3.3.2
Stai seguendo un tutorial di python 2 con un interprete python 3.$ echo 'print "hello, world!"' > hello.py $ python2 hello.py hello, world! $ python3 hello.py File "hello.py", line 1 print "hello, world!" ^ SyntaxError: invalid syntaxYoung professional woman and busy mom.-
Re: Prima esperienza con pythonScritto daNon Autenticatoil 2014-09-23 19:58:10.0 alle 2014-09-23 19:58:10.0Scritto da: ::1
> Scritto da:
> > Scritto da: ::1
> > > Scritto da:
> > > > Lancio da Cygwin hello.py:
> > > >
> > > > print "hello, world" (copiato da un tutorial)
> > > >
> > > >A@_ ~ > > > > $ python hello.py > > > > File "hello.py", line 1 > > > > print "hello, world" > > > > ^ > > > > SyntaxError: invalid syntax
> > > >
> > > >
> > >
> > > python --version, python 2 e python 3 non sono compatibili.
> >
> > Python 3.3.2
>
> Stai seguendo un tutorial di python 2 con un interprete python 3.
>> $ echo 'print "hello, world!"' > hello.py > $ python2 hello.py > hello, world! > $ python3 hello.py > File "hello.py", line 1 > print "hello, world!" > ^ > SyntaxError: invalid syntax >
Una compatibilità tra versioni degna di Linoleum
-
-
-
-