读取web.config和app.config配置文件时间:2023-03-09 06:02:03 app.config: <add key="Password" value="123456"/> C#: string TQpwd = System.Configuration.ConfigurationManager.AppSettings["Password"].ToString(); 需要引用 using System.Configuration;