我有两个文件,一个普通的Python(.py)文件和一个Visual Studio C#文件(.cs)。我想在python文件中使用返回一个字符串并在C#文件中使用该字符串的函数。 基本上是: #This is the Python file!
def pythonString():
return "Some String"
和 //This is the C# file!
na
我曾尝试在Visual Studio中使用IronPython运行python脚本,并且它很顺利,直到我尝试使用此代码在python脚本中使用任何库时。 var ipy = Python.CreateRuntime();
dynamic test = ipy.UseFile("C:/Python/Test.py");
var whatever = test.python_string();
我是IronPython的新手,并尝试使用下面的代码将我的交叉表从Spotfire导出到Excel。 如何修改此脚本以包含定义vizTable? import System
from System.IO import FileStream, FileMode
from Spotfire.Dxp.Application.Visuals import TablePlot
from Spotfir