Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jython 编写一个函数,要求用户以米为单位输入姓名、年龄和身高,然后使用单个打印语句显示自定义消息_Jython_Jes - Fatal编程技术网

Jython 编写一个函数,要求用户以米为单位输入姓名、年龄和身高,然后使用单个打印语句显示自定义消息

Jython 编写一个函数,要求用户以米为单位输入姓名、年龄和身高,然后使用单个打印语句显示自定义消息,jython,jes,Jython,Jes,它没有按我希望的方式打印。没有声明num vaiable 在中使用age而不是num 打印Hello,name!,我看到你,嗯,好几年了 老的,高的,高的 使用 它打印的结果为Nothing,konjum help panunge broThere没有声明num变量。所以在打印代码中将num改为age name = requestString("Enter your name:") age = requestNumber("Enter your age:") height = request

它没有按我希望的方式打印。

没有声明num vaiable

在中使用age而不是num

打印Hello,name!,我看到你,嗯,好几年了 老的,高的,高的

使用


它打印的结果为Nothing,konjum help panunge broThere没有声明num变量。所以在打印代码中将num改为age
name = requestString("Enter your name:")

age = requestNumber("Enter your age:")

height = requestNumber("Enter your height:")

print "Hello", name, "!", "i see that you are", num, "years old", "&", height, "tall"
print "Hello", name, "!", "i see that you are", age, "years old", "&", height, "tall"