Files
ctbjrj/yjktool/测试入口.cs
T

20 lines
628 B
C#

using System;
namespace yjktool
{
static class 测试入口
{
[STAThread]
static int Main(string[] args)
{
string 树id = args.Length > 0 ? args[0] : "10";
Console.OutputEncoding = System.Text.Encoding.UTF8;
var g = new 抓取器(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "抓取输出"))
{ 日志 = s => Console.WriteLine(s) };
var kv = g.抓厂家(树id, "(测试厂" + 树id + ")", 4);
Console.WriteLine("== 结果: 系列 {0}, 价格 {1}", kv.Key, kv.Value);
return 0;
}
}
}