Mercurial > hgrepos > hgweb.cgi > skipweb
view staff/murakami/html-makaer.rb @ 3944:e45173af0101 default tip master
chenge game link
author | KOMATSU Kotaro <c118089@roy.e.koeki-u.ac.jp> |
---|---|
date | Mon, 20 Jan 2020 18:13:48 +0900 |
parents | 4494a2d44018 |
children |
line wrap: on
line source
#!/usr/bin/ruby # coding euc-jp time = 0.5 print"Welcome to HTML MAKER!!\n" #sleep(time) print"What's its title?\n" title = gets.chomp! open("news.html", "w") do |f| f.print" <html>\n <body>\n " f.printf(" <p>\n %s\n </p>\n ", title) f.print" </body> </html> " end