读取一个文件,将其打印出来:lines = File.open('dom.js').readlines puts "=======================" lines.each { |line| puts(line)}
介绍Ruby是一种动态编程语言,可用于编写从简单脚本到游戏和Web应用程序的任何内容。它于1993年首次在日本发布,但在2005年作为服务器端Web开发的语言获得了普及。
Less is more2021年01月20日 10:16:43
不仅要提出问题,更要提出解决问题的方案!2020年12月21日 10:45:18
Talk is cheap. Show me the code.2020年07月23日 14:19:35
Knowing is not enough we must apply. Willing is not enough we must do.2020年07月21日 14:43:46
The best time to plant a tree is 20 years ago. The second-best time is now.2020年07月21日 14:42:22