/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import clr clr.AddReference("System.Configuration") from System.Configuration import ConfigurationManager ConfigurationManager.AppSettings.BaseClear() ConfigurationManager.AppSettings.BaseAdd("lang",ArrayList(["fr",])) print ConfigurationManager.AppSettings["lang"] // -> fr