Writing /share/Web/wiki/data/cache/1/137ad896cdf18dbd42a0d4babed34bfb.metadata failed
wiki:wiki语法测试:图片测试
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
| wiki:wiki语法测试:图片测试 [2023/03/24 16:05] – zhangguo | wiki:wiki语法测试:图片测试 [2024/03/25 16:57] (当前版本) – [link] zhangguo | ||
|---|---|---|---|
| 行 23: | 行 23: | ||
| {{wiki: | {{wiki: | ||
| {{wiki: | {{wiki: | ||
| - | </ | ||
| - | |||
| - | ====== 无用png文件搜索 ====== | ||
| - | 执行下面这个perl脚本,为显示出未使用的png文件,然后可以手动将其删除。 | ||
| - | |||
| - | <code perl> | ||
| - | # | ||
| - | use File:: | ||
| - | |||
| - | $wiki_path = "/ | ||
| - | |||
| - | $findret = `find $wiki_path/ | ||
| - | @ar = split(/\n/, $findret); | ||
| - | |||
| - | foreach $line (@ar) { | ||
| - | $name = & | ||
| - | |||
| - | $ret = `grep $name $wiki_path/ | ||
| - | if ($ret eq "" | ||
| - | print "rm -rf $line\n"; | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | |||
| - | python3代码,可直接在qnap上运行。 | ||
| - | <code python> | ||
| - | [~] # cat ./ | ||
| - | # | ||
| - | # -*- coding: UTF-8 -*- | ||
| - | import re | ||
| - | import sys | ||
| - | import os | ||
| - | import os.path | ||
| - | |||
| - | file_list = [] | ||
| - | |||
| - | def search(path): | ||
| - | for entry in os.scandir(path): | ||
| - | if entry.is_file(): | ||
| - | file_list.append(entry.path) | ||
| - | # | ||
| - | else: | ||
| - | search(path+'/' | ||
| - | |||
| - | |||
| - | if __name__==' | ||
| - | #path = sys.argv[1] | ||
| - | path = "/ | ||
| - | search(path) | ||
| - | for tmp in file_list: | ||
| - | if (re.search(r' | ||
| - | | ||
| - | if (re.search(r' | ||
| - | | ||
| - | |||
| - | name = os.path.basename(tmp) | ||
| - | # | ||
| - | ret = os.system(f' | ||
| - | # | ||
| - | if (ret != 0): | ||
| - | | ||
| - | |||
| - | [~] # | ||
| </ | </ | ||
| 行 92: | 行 28: | ||
| {{语法测试: | {{语法测试: | ||
| - | |||
| - | <WRAP group> | ||
| - | <WRAP half column> | ||
| - | 图片2,-- \\ | ||
| - | {{语法测试: | ||
| - | </ | ||
| - | |||
| - | <WRAP half column> | ||
| - | 需要有上传权限才可以传图片\\ | ||
| - | {{语法测试: | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | {{tag> | ||
| - | |||
| - | {{tag> | ||
| - | |||
| - | |||
| - | |||
wiki/wiki语法测试/图片测试.1679645142.txt.gz · 最后更改: 2023/03/24 16:05 由 zhangguo