Ruby Ruby 如何打出带圈的数字,如①

hw676018683 · March 23, 2017 · Last by hw676018683 replied at March 23, 2017 · 1514 hits
def number_with_ring n
  # how
end

number_with_ring(1) # => ①  

。。好多输入法都可以啊

"\u{2460}" "\u{2461}"

土方法做个 Map 对应关系不就可以了?!

numbers = %(零壹贰叁肆伍陆柒捌玖)
puts numbers[0]
puts numbers[1]
puts numbers[2]
Reply to huacnlee

我也喜欢土方法😂

Reply to kikyous

学到了,可惜只能到 20

You need to Sign in before reply, if you don't have an account, please Sign up first.