从C#到Python的更多参数

时间:2015-05-22 10:01:51

标签: c# python

在我的应用程序中,我将参数传递给Python文件。我写的代码是:

process.StartInfo.Arguments = string.Format("{0} 
                              {1}",@"C:\Work\Scripts\XML_Parsing.py", 
                               asset_id.Text);

这对我来说很好。问题是,我有近20个值作为参数传递给Python文件。有没有更好的方法将这些值传递给Python?

1 个答案:

答案 0 :(得分:0)

String.Join似乎可能适用于您的目的。

 <script src="http://connect.facebook.net/en_US/all.js"></script>