Genie を使用して簡単な Hello World プログラムを作成しようとしていますが、ターミナルで何らかの入力を行えるようにしたいと考えていました。私の目的は、Genie で次の python コードを繰り返すことです。
#!/usr/bin/env python
print 'Hello. I am a python program.'
name = raw_input("What is your name? ")
print "Hello there, " + name + "!"
これまでのところ、私がやったことは次のとおりです。
[indent=4]
uses System
init
print "Hello. I am a python program."
var name = Console.ReadLine("What is your name? ")
print "Hello there, " + name + "!"
しかし、おそらく言語についてわからないため、いくつかのエラーが発生します。エラーは次のとおりです。
hw.gs:4.5-4.10: error: The namespace name `System' could not be found
System
^^^^^^
Compilation failed: 1 error(s), 0 warning(s)
hw.gs:3.6-3.11: error: The namespace name `System' could not be found
uses System
^^^^^^
Compilation failed: 1 error(s), 0 warning(s)
私は何を間違っていますか?
ありがとう。