输入与Module
ruby的输入print "How old are you? "
age = gets.chomp()
print "How tall are you? "
height = gets.chomp()
print "How much do you weigh? "
weight = gets.chomp()puts "So, you're #{age} old, #{height} tall and
原创
2017-09-05 21:45:08 ·
163 阅读 ·
0 评论