摘要: 输出函数puts puts "hello" a = 10 b = 5 puts a+b 数值类型转字符串类型to_s 字符串类型转数值类型用to_i str = 123.to_s puts str puts "hellow " + 123.to_s 字符串的插值 #{传入变量} a = 10 n = 阅读全文
posted @ 2022-10-07 15:50 克莱比-Kirby 阅读(46) 评论(0) 推荐(0)