Python programozás - Szoftverfejlesztés fórum

üzenetek

hozzászólások


Jester01
(veterán)
Blog

Másold be a terminálból pontosan mit csináltál és mi lett az eredménye.
Így, ahogy én csináltam:

$ cat >hello.py
#!/usr/bin/python
print 'Hello. I am a python program.'
name = raw_input("What is your name? ")
print "Hello there, " + name + "!"
$ chmod +x hello.py
$ ./hello.py
Hello. I am a python program.
What is your name? Jester
Hello there, Jester!

(a programot a következő sorban ctrl+d-vel zárhatod le)

üzenetek