Form1.cs using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms; namespace FileStyle{ public partial class Form1 : Form {
#获取某文件夹下制定类型文件# import os# def filep(fp):# l=[]# a=os.walk(fp) #生成器# for nowp,sonp,oth in a: #当前目录,子文件夹(一级),其他文件费文件夹# for i in oth:# if os.path.splitext(i)[1]=='.py':#splitext分离路径和文件名# l.append(i)# return l# print(filep("D:\\1")) #==============
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> /// 依据指定的