Newer
Older
Ruby / hyou1.rb
@HIDA Koei HIDA Koei on 1 Dec 2024 555 bytes 2024-12-01 18:41:52
    # hyuoou1.rb
     class Hyou1
    	def drawTable( data )
    		for i in 0..(data.length-1) do
    			for j in 0..(data[0].length-1) do
    				print "|" + data[i][j] + "\t"
    			end
    			puts '|'
    		end
    	end
    end
    data = [ [ '1      ', '2      ', '3       ', '4       ', '5      ', '6     ' ],[ '天秤座  ', '山羊座  ', '乙女座  ', '獅子座  ', '蠍座    ', '射手座  ' ],[ '7月24日頃', '9月28日頃', '6月6日頃', '4月24日頃', '7月24日頃', '8月31日頃' 
    ] ]
    h = Hyou1.new()
    h.drawTable( data )