c# 

在VS中创建类库,根据自己需要起名,确定以后会生成一个叫Class1的类

 

public class Class1
    {
        public int AddShort(short x, short y)
        {
            return x + y;
        }    }

代码示例

python调用testlink Python调用c#_python

python 代码调用  

pip install pythonnet 安装CLR

python调用testlink Python调用c#_CLR_02

 

python 项目目录

python调用testlink Python调用c#_CLR_03