标签:运行环境 clr ack element image reference sans 4.0 luci
python与c#的交互模块pythonnet
http://www.cnblogs.com/tester-zhenghan/p/5406521.html
>>> import clr
>>> import System
>>> print System.Environment.Version
4.0.30319.42000
>>> dllpath=r‘E:\Test.Common.dll‘
>>> a=clr.AddReference(dllpath)
>>> import Test.Common
>>> x=Test.Common.XmlHelper()
>>> b=x.ReplaceElement(‘<XML><test>fff</test><test1>vvvv</test1></XML>‘,‘test‘)
>>> b
u‘<XML>\r\n <test>**********</test>\r\n <test1>vvvv</test1>\r\n</XML>‘
标签:运行环境 clr ack element image reference sans 4.0 luci
原文地址:http://www.cnblogs.com/sui84/p/7691423.html