`
leeyouser
  • 浏览: 24526 次
  • 性别: Icon_minigender_1
  • 来自: 南京
文章分类
社区版块
存档分类
最新评论
文章列表
windows下: pause命令 C:\Documents and Settings\leeyouser>pause /? 暂停批处理程序,并显示以下消息: 请按任意键继续. . . 如果不想输出“请按任意键继续. . .”,而是显示自己想要的输出信息可以这样: echo your output message pause>nul set命令 set /p input="Please press any key to continue..." linux下: 没有系统自带的pause命令,可以用以下代码实现: #!/bin/bas ...
@server = TCPServer.open(@host, @port) rescue Exception => e @log.fatal("SSH protocol start ... failed. (#{e.to_s})") raise "SSHServer start failed." end @log.info("SSH protocol start ... ok\n") @protocol_started = true while @server ...
class A   def bcd     puts "bcd"   end end ta = A.new ta.bcd class A   def cdf     puts "cdf"   end end a = A.new a.cdf a.bcd ta.cdf 重新定义只会增加原来类的内容,并不会覆盖。
require 'ftools' File.copy('a.txt', 'a.txt.bak') File.move File.delete
Global site tag (gtag.js) - Google Analytics