How can I take input from 开发者_如何学Ckeyboard with Ruby?
Try this:
puts "In which city do you stay?"
STDOUT.flush
city = gets.chomp
puts "The city is " + city
How can I take input from 开发者_如何学Ckeyboard with Ruby?
Try this:
puts "In which city do you stay?"
STDOUT.flush
city = gets.chomp
puts "The city is " + city
精彩评论