我有兩個文件,一個普通的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