摘要:
序列化:将对象保存为文本文件或二进制文件; 反序列:将文本文件或二进制文件还原为对象; 1.Xml文件 1.1.创建StudentInfo类 1 using System.Collections.Generic; 2 using System.Xml.Serialization; 3 using S 阅读全文
摘要:
1 #获取某个文件夹下的所有代码总行数 2 import os 3 def GetAllPath(dirname): 4 result = [] 5 for maindir, subdir, file_name_list in os.walk(dirname): 6 for filename in 阅读全文
摘要:
1 using UnityEngine; 2 using System.Collections; 3 4 public class SingleMono<T> : MonoBehaviour where T : MonoBehaviour 5 { 6 private static T _instan 阅读全文