#15 Add an example in coolbook that demonstrates calling Python code using the python.net component.
The pythonnet component is faster, has a higher version, and better compatibility compared to the ironpython component.
I have tried the following code, and it can be executed successfully with the correct result. However, it is not elegant and convenient.
I want to use the following method to call the function, but I do not have enough programming skills to achieve the goal
(The conversion of various data types between C# and Python, difficult to understand.)
Python.NET configuration and further references.
https://somegenericdev.medium.com/callin...d45f7d5232
https://pythonnet.github.io/pythonnet/dotnet.html
The pythonnet component is faster, has a higher version, and better compatibility compared to the ironpython component.
I have tried the following code, and it can be executed successfully with the correct result. However, it is not elegant and convenient.
I want to use the following method to call the function, but I do not have enough programming skills to achieve the goal

Python.NET configuration and further references.
https://somegenericdev.medium.com/callin...d45f7d5232
https://pythonnet.github.io/pythonnet/dotnet.html