[本文出自天外归云的博客园] 脚本功能:在指定的路径下递归搜索,找出指定字符串在文件中出现的位置(行信息). 用到的python特性: 1. PEP 318 -- Decorators for Functions and Methods 2. PEP 380 -- Syntax for Delegating to a Subgenerator 3. PEP 471 -- os.scandir() function -- a better and faster directory iterator…
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.IO; <pre class="csharp" name="code"> public static List<string> nameArray = new List<string>(); /// <summary> /// 依据指定的…