摘要:
众所周知,直接通过命令行 可以启动项目中名为yourspidername的爬虫。在python脚本中可以调用cmdline模块来启动命令行: 其中,在方法3、4中,推荐subprocess "subprocess module" intends to replace several other, o 阅读全文
摘要:
1 编辑: paste/sort/uniq/cut/tr/split paste 将文件按照行合并,默认分隔符为tab。用-d指定分隔符。 root@ubuntu:/home/fsj/templates# cat 1.txt b c a e d f root@ubuntu:/home/fsj/tem 阅读全文