Created
June 5, 2024 08:31
-
-
Save MzHmO/ca540bbb923fc80f5596ff166fc79cd7 to your computer and use it in GitHub Desktop.
hi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using IronPython.Hosting; | |
using Microsoft.Scripting.Hosting; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var engine = Python.CreateEngine(); | |
var pythonScript = @"print('hello world')"; | |
engine.Execute(pythonScript); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment