将值从c#窗口表单传递到python脚本 [英] Passing values from c# window forms to python script

查看:93
本文介绍了将值从c#窗口表单传递到python脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想知道如何将c#窗体中的值传递给python脚本。我试图使用从我的c#窗体中替换python脚本中的值,然后使用新替换的值运行python脚本。知道怎么做?

Hi,

I wanted to know how do i pass values from c# window forms into a python script. I am trying to use replace the values in the python script from my c# window forms and then run the python script with the newly replaced values. Any idea how?

推荐答案





我从未尝试过。



以下是这样做的方法: http://stackoverflow.com/questions/11779143/run-a-python-script-from-c-sharp [ ^ ]



在运行之前更换字符串。
Hi,

I never tried that.

Here is way to do the same : http://stackoverflow.com/questions/11779143/run-a-python-script-from-c-sharp[^]

Just before running it replace the string.


这篇关于将值从c#窗口表单传递到python脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆