批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程
[批处理文件精品]批处理版照片整理器[批处理文件精品]纯批处理备份&还原驱动在线第三方下载
返回列表 发帖

[文本处理] [已解决]求BAT根据文本内容修改和生成新的html文件

本帖最后由 zlsanhong 于 2019-10-30 20:33 编辑

已知  a.txt   内容如下,每行一个中文,(想通过修改这个文本的内容来达到修改和生成新的html内容
  1. 电暖宝
  2. 棉鞋
  3. 暖水袋
  4. 雪地靴
  5. 暖风机
  6. 电褥子
  7. 大衣
  8. 棉袜
  9. 计算器
  10. 睡袍
  11. 电火锅
  12. 男童鞋
  13. 棉服
  14. 被芯
  15. 跳绳
  16. 孕妇裤
  17. 棉袄
  18. 牛肉
  19. 瓜子
  20. 螺狮粉
  21. 面条
  22. 口香糖
  23. 夏威夷果
  24. 魔芋爽
  25. 冬被
  26. 打底袜
  27. 毯子
  28. 糖果
  29. 瑜伽服
  30. 耳塞
  31. 绿植
  32. 豆浆
  33. 小电锅
  34. 益生菌
  35. 花瓶
  36. 围巾
  37. 柚子
  38. 手套
  39. 取暖器
  40. 草稿纸
  41. 豆干
  42. 猪肉脯
  43. 麻花
  44. 暖贴
  45. 积木
  46. 吐司
  47. 头盔
  48. 小麻花
  49. 蛋糕
  50. 紫薯
复制代码
已知 reshou.html  的源码如下:
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  6. <title>省立赚淘宝热词搜索排行榜</title>
  7. </head>
  8. <div>
  9. <img src="http://pianyi.baidu.cn/reshou/reshou.jpg" style="max-width:100%;"/>
  10. </div>
  11. <br />
  12. <body >
  13. <!-- 代码begin -->
  14. <nav>
  15. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00001" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">00001</span></a></span>|
  16. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00002" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">00002</span></a></span>|
  17. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00003" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">00003</span></a></span>|
  18. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00004" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">00004</span></a></span>|
  19. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00005" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">00005</span></a></span><br />
  20. <br />
  21. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00006" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">00006</span></a></span>|
  22. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00007" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">00007</span></a></span>|
  23. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00008" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">00008</span></a></span>|
  24. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00009" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">00009</span></a></span>|
  25. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00010" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">00010</span></a></span><br />
  26. <br />
  27. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00011" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">00011</span></a></span>|
  28. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00012" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">00012</span></a></span>|
  29. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00013" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">00013</span></a></span>|
  30. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00014" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">00014</span></a></span>|
  31. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00015" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">00015</span></a></span><br />
  32. <br />
  33. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00016" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">00016</span></a></span>|
  34. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00017" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">00017</span></a></span>|
  35. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00018" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">00018</span></a></span>|
  36. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00019" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">00019</span></a></span>|
  37. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00020" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">00020</span></a></span><br />
  38. <br />
  39. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00021" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">00021</span></a></span>|
  40. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00022" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">00022</span></a></span>|
  41. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00023" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">00023</span></a></span>|
  42. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00024" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">00024</span></a></span>|
  43. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00025" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">00025</span></a></span><br />
  44. <br />
  45. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00026" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">00026</span></a></span>|
  46. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00027" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">00027</span></a></span>|
  47. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00028" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">00028</span></a></span>|
  48. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00029" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">00029</span></a></span>|
  49. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00030" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">00030</span></a></span><br />
  50. <br />
  51. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00031" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">00031</span></a></span>|
  52. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00032" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">00032</span></a></span>|
  53. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00033" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">00033</span></a></span>|
  54. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00034" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">00034</span></a></span>|
  55. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00035" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">00035</span></a></span><br />
  56. <br />
  57. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00036" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">00036</span></a></span>|
  58. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00037" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">00037</span></a></span>|
  59. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00038" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">00038</span></a></span>|
  60. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00039" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">00039</span></a></span>|
  61. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00040" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">00040</span></a></span><br />
  62. <br />
  63. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00041" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">00041</span></a></span>|
  64. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00042" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">00042</span></a></span>|
  65. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00043" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">00043</span></a></span>|
  66. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00044" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">00044</span></a></span>|
  67. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00045" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">00045</span></a></span><br />
  68. <br />
  69. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00046" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">00046</span></a></span>|
  70. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00047" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">00047</span></a></span>|
  71. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00048" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">00048</span></a></span>|
  72. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00049" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">00049</span></a></span>|
  73. <span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=00050" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">00050</span></a></span>
  74. </nav>
  75. <!-- 代码end -->
  76. </body>
  77. </html>
复制代码
想达到的目的是啥呢,把a.txt的 弟1行文字替换掉reshou.html里面的00001,第2行替换掉00002,,,,,第50行替换掉00050;然后生成新的index.html文件

求个大佬帮忙写个批处理,谢谢大佬~~~~~万分感谢~

求大佬帮忙,谢谢大佬~

TOP

既然你能ps 就写个PS,修定 a.txt为ANSI编码,HTML为utf8编码:
  1. $arr=@{};gc a.txt|%{[void]$arr.Add((++$n),$_)};[regex]::Replace((gc renshou.html -ReadCount 0 -enc UTF8),'(?i)(?<=(>|=))\d{5}',{$arr.[int]$args.value})|sc '.\index.html' -enc UTF8 -Force;
复制代码
QQ: 458609586

TOP

上面的是把所有的行合并为一行。若要保留原来的行:
  1. $arr=@{};gc a.txt|%{[void]$arr.Add((++$n),$_)};[regex]::Replace(((gc renshou.html -enc UTF8) -join "`r`n"),'(?<=(>|=))\d{5}',{$arr.[int]$args.value})|sc '.\index.html' -enc UTF8 -Force;
复制代码
QQ: 458609586

TOP

本帖最后由 zlsanhong 于 2019-10-18 17:58 编辑

回复 4# xczxczxcz


    首先感谢兄弟,但是我在用windows powershell 执行这两段代码时,都显示了如下内容,请问下我是哪里做错了吗?(我是技术盲,所以虚心求教呢!)
  1. PS C:\Users\Administrator\Desktop\模版\1> cd D:\1
  2. PS D:\1> $arr=@{};gc a.txt|%{[void]$arr.Add((++$n),$_)};[regex]::Replace(((gc renshou.html -enc UTF8) -join "`r`n"),'(?<
  3. =(>|=))\d{5}',{$arr.[int]$args.value})|sc '.\index.html' -enc UTF8 -Force;
  4. Get-Content : 找不到路径“D:\1\renshou.html”,因为该路径不存在。
  5. 所在位置 行:1 字符: 69
  6. + $arr=@{};gc a.txt|%{[void]$arr.Add((++$n),$_)};[regex]::Replace(((gc <<<<  renshou.html -enc UTF8) -join "`r`n"),'(?<
  7. =(>|=))\d{5}',{$arr.[int]$args.value})|sc '.\index.html' -enc UTF8 -Force;
  8.     + CategoryInfo          : ObjectNotFound: (D:\1\renshou.html:String) [Get-Content], ItemNotFoundException
  9.     + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
  10. PS D:\1> $arr=@{};gc a.txt|%{[void]$arr.Add((++$n),$_)};[regex]::Replace((gc renshou.html -ReadCount 0 -enc UTF8),'(?i)(
  11. ?<=(>|=))\d{5}',{$arr.[int]$args.value})|sc '.\index.html' -enc UTF8 -Force;
  12. Get-Content : 找不到路径“D:\1\renshou.html”,因为该路径不存在。
  13. 所在位置 行:1 字符: 68
  14. + $arr=@{};gc a.txt|%{[void]$arr.Add((++$n),$_)};[regex]::Replace((gc <<<<  renshou.html -ReadCount 0 -enc UTF8),'(?i)(
  15. ?<=(>|=))\d{5}',{$arr.[int]$args.value})|sc '.\index.html' -enc UTF8 -Force;
  16.     + CategoryInfo          : ObjectNotFound: (D:\1\renshou.html:String) [Get-Content], ItemNotFoundException
  17.     + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
复制代码

TOP

把 a.txt  renshou.html 放在PS运行目录下:如你的 d:\1 文件夹内。
QQ: 458609586

TOP

靠  你的文件名 乱七八糟的。 renshou.html  一会又是 reshou.html 自己修正。
QQ: 458609586

TOP

本帖最后由 zlsanhong 于 2019-10-18 19:09 编辑

回复 6# xczxczxcz
再次感谢老大。才发觉是我的html文件名写错了,相当抱歉。
可是我改回来之后,按您的要求和意思执行之后。生成的新的index.html内容中。所有00001----00050全部都为空,a.txt的文本行的内容没有被替换进去呢! 还望老大指点一下是怎么回事? 谢谢大佬~~

TOP

$arr=@{};gc a.txt|%{[void]$arr.Add((++$n),$_)};[regex]::Replace(((gc renshou.html -enc UTF8) -join "`r`n"),'(?<=(>|=))\d{5}',{$arr.[int]$args.value})|sc '.\index.html' -enc UTF8 -Force;

改成你的真实文件名。html文件为 utf8编码.
QQ: 458609586

TOP

如果你是在命令行窗口中执行。且一直没有关闭命令行窗口。则需要。在命令行中输入:$n=0; 回车 再粘贴上面的代码运行。如关掉窗口再重新运行则不需要输入。
QQ: 458609586

TOP

回复 9# xczxczxcz


    老大,我改了,但是之后的内容就变成如下的index.html了,所有的00001--00050全部被清空,a.txt文本里的的行的文本没有替换到生成的新的index.html中。
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  6. <title>省立赚淘宝热词搜索排行榜</title>
  7. </head>
  8. <div>
  9. <img src="http://pianyi.renwuzhongxin.cn/reshou/reshou.jpg" style="max-width:100%;"/>
  10. </div>
  11. <br />
  12. <body >
  13. <!-- 代码begin -->
  14. <nav>
  15. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;"></span></a></span>|
  16. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;"></span></a></span>|
  17. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;"></span></a></span>|
  18. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;"></span></a></span>|
  19. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;"></span></a></span><br />
  20. <br />
  21. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;"></span></a></span>|
  22. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;"></span></a></span>|
  23. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;"></span></a></span>|
  24. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;"></span></a></span>|
  25. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;"></span></a></span><br />
  26. <br />
  27. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;"></span></a></span>|
  28. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;"></span></a></span>|
  29. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;"></span></a></span>|
  30. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;"></span></a></span>|
  31. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;"></span></a></span><br />
  32. <br />
  33. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;"></span></a></span>|
  34. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;"></span></a></span>|
  35. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;"></span></a></span>|
  36. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;"></span></a></span>|
  37. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;"></span></a></span><br />
  38. <br />
  39. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;"></span></a></span>|
  40. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;"></span></a></span>|
  41. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;"></span></a></span>|
  42. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;"></span></a></span>|
  43. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;"></span></a></span><br />
  44. <br />
  45. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;"></span></a></span>|
  46. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;"></span></a></span>|
  47. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;"></span></a></span>|
  48. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;"></span></a></span>|
  49. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;"></span></a></span><br />
  50. <br />
  51. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;"></span></a></span>|
  52. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;"></span></a></span>|
  53. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;"></span></a></span>|
  54. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;"></span></a></span>|
  55. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;"></span></a></span><br />
  56. <br />
  57. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;"></span></a></span>|
  58. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;"></span></a></span>|
  59. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;"></span></a></span>|
  60. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;"></span></a></span>|
  61. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;"></span></a></span><br />
  62. <br />
  63. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;"></span></a></span>|
  64. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;"></span></a></span>|
  65. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;"></span></a></span>|
  66. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;"></span></a></span>|
  67. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;"></span></a></span><br />
  68. <br />
  69. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;"></span></a></span>|
  70. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;"></span></a></span>|
  71. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;"></span></a></span>|
  72. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;"></span></a></span>|
  73. <span><a href="http://pianyi.renwuzhongxin.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;"></span></a></span>
  74. </nav>
  75. <!-- 代码end -->
  76. </body>
  77. </html>
复制代码

TOP

你的 A.txt 在哪?
测试。。。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>省立赚淘宝热词搜索排行榜</title>

</head>
<div>
        <img src="http://pianyi.baidu.cn/reshou/reshou.jpg" style="max-width:100%;"/>
</div>
<br />

<body >
<!-- 代码begin -->
<nav>
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=电暖宝" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">电暖宝</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=棉鞋" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">棉鞋</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=暖水袋" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">暖水袋</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=雪地靴" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">雪地靴</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=暖风机" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">暖风机</span></a></span><br />
<br />
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=电褥子" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">电褥子</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=大衣" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">大衣</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=棉袜" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">棉袜</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=计算器" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">计算器</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=睡袍" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">睡袍</span></a></span><br />
<br />
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=电火锅" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">电火锅</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=男童鞋" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">男童鞋</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=棉服" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">棉服</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=被芯" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">被芯</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=跳绳" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">跳绳</span></a></span><br />
<br />
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=孕妇裤" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">孕妇裤</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=棉袄" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">棉袄</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=牛肉" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">牛肉</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=瓜子" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">瓜子</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=螺狮粉" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">螺狮粉</span></a></span><br />
<br />
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=面条" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">面条</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=口香糖" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">口香糖</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=夏威夷果" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">夏威夷果</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=魔芋爽" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">魔芋爽</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=冬被" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">冬被</span></a></span><br />
<br />
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=打底袜" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">打底袜</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=毯子" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">毯子</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=糖果" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">糖果</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=瑜伽服" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">瑜伽服</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=耳塞" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">耳塞</span></a></span><br />
<br />
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=绿植" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">绿植</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=豆浆" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">豆浆</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=小电锅" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">小电锅</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=益生菌" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">益生菌</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=花瓶" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">花瓶</span></a></span><br />
<br />
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=围巾" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">围巾</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=柚子" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">柚子</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=手套" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">手套</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=取暖器" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">取暖器</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=草稿纸" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">草稿纸</span></a></span><br />
<br />
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=豆干" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">豆干</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=猪肉脯" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">猪肉脯</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=麻花" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">麻花</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=暖贴" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">暖贴</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=积木" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">积木</span></a></span><br />
<br />
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=吐司" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#0000FF;">吐司</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=头盔" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#8A2BE2;">头盔</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=小麻花" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#FF00FF;">小麻花</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=蛋糕" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#008000;">蛋糕</span></a></span>|
<span><a href="http://pianyi.baidu.cn/shop/index.php?r=index/classify&px=xiaoliang&row=1&kw=紫薯" style="color:red;text-decoration:none;"><span style="font-size:24px;color:#E53333;">紫薯</span></a></span>

</nav>
<!-- 代码end -->

</body>
</html>
QQ: 458609586

TOP

可以把 a.txt  和  reshow.html 发上来或发我QQ,还在打酱油中。。。
1

评分人数

    • zlsanhong: 非常不错,居然不知道有评分制度~~技术 + 1
QQ: 458609586

TOP

回复 12# xczxczxcz


    也在 d:/1 文件夹下面哈,难道我操作方式错了?

TOP

本帖最后由 zlsanhong 于 2019-10-18 19:41 编辑

回复 13# xczxczxcz


    好的。老大,加我下,我加你了没同意,QQ:419859666

TOP

返回列表