Project1

标题: 「2016.1.4」臼井の会重开了(期間限定),有新的 MV 素材 [打印本页]

作者: taroxd    时间: 2016-1-4 09:30
标题: 「2016.1.4」臼井の会重开了(期間限定),有新的 MV 素材
本帖最后由 taroxd 于 2016-1-4 10:23 编辑

我对这段代码是什么意思一无所知

RUBY 代码复制
  1. require 'net/http'
  2.  
  3. list = %W[
  4. rpg_actor_mv
  5. rpg_actor_m
  6. rpg_actor_f
  7. rpg_actor_etc
  8. rpg_icon
  9. rpg_chadot4_10
  10. rpg_chadot11_20
  11. rpg_chadot21_30
  12. rpg_chadot31_40
  13. rpg_chadot41_50
  14. rpg_chadot51_60
  15. rpg_chadot61_70
  16. rpg_chadot71_80
  17. rpg_chadot81_90
  18. rpg_chadot91_100
  19. rpg_chadot101_110
  20. rpg_chadot111_120
  21. rpg_chadot121_130
  22. rpg_chadot131_140
  23. rpg_chadot141_150
  24. rpg_chadot_etc
  25. rpg_window
  26. rpg_effect
  27. rpg_map
  28. ]
  29.  
  30. list.each do |type|
  31.   Net::HTTP.get('usui.moo.jp', "/#{type}.html").scan(/<img src=\"(.+?.png)\"/) do |(addr)|
  32.     if addr.start_with? '.'
  33.       addr = addr[1..-1]
  34.     elsif !addr.start_with? '/'
  35.       addr.prepend '/'
  36.     end
  37.     data = Net::HTTP.get('usui.moo.jp', addr)
  38.     Dir.mkdir type unless Dir.exist? type
  39.     File.open("#{type}/#{File.basename addr}", 'wb') { |f| f.write data }
  40.   end
  41. end

作者: 永恒の未知数    时间: 2016-1-4 09:37
还是免费的?
作者: VIPArcher    时间: 2016-1-4 11:05
这个逼我给99分,满分怕你骄傲。【已下载x
作者: 怪蜀黍    时间: 2016-1-4 11:11
在尚未获得这段令人一无所知的代码前,吾已一张一张手动右键。
作者: 精灵使者    时间: 2016-1-4 14:27
臼井的地址我都不知道……
作者: 89444640    时间: 2016-1-4 16:17
精灵使者 发表于 2016-1-4 14:27
臼井的地址我都不知道……

http://usui.moo.jp/frame2.html这个?
很多参考材料哦,就是地图……唉……
因为不爽这个地图风格,为了画博丽神社地图,的买了好多参考书。
作者: nc的汪海兵    时间: 2016-1-4 18:02
关站的时候一直用backwaymachine上,好多图都是挂的
作者: Password    时间: 2016-1-4 19:05
1月1号就重开了来着,话说真是新年惊喜
早在获得这一无所知的代码之前,我也像P叔一样一张一张右键了
作者: trentswd    时间: 2016-1-5 00:03
并没有ruby的表示,老司机能不能换python来(揍
作者: 赤炎    时间: 2016-1-5 01:13
这个脚本怎么用
作者: 冷峻逸    时间: 2016-1-5 19:51
提示: 作者被禁止或删除 内容自动屏蔽
作者: 咕噜    时间: 2016-1-7 17:21
Password 发表于 2016-1-4 19:05
1月1号就重开了来着,话说真是新年惊喜
早在获得这一无所知的代码之前,我也像P叔一样一张一张右 ...

所以你为什么变帅了。
作者: 江河武信    时间: 2016-1-9 01:03
赞!!第一次知道这个网站。看了觉得很棒!!




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1