π .NETμμ Pythonμ κ°μ₯ κ°λ³κ² μ€ννλ λ°©λ²
Python μ½λλ₯Ό C# μ ν리μΌμ΄μ μμ μ€νν΄μΌ νλλ° λ³΅μ‘ν μ€μ κ³Ό 보μΌλ¬νλ μ΄νΈ μ½λκ° λΆλ΄λμ ¨λμ?
DotNetPyλ₯Ό λ§λ€μμ΅λλ€: β Zero Boilerplate - GIL κ΄λ¦¬λ Source Generator λΆνμ β AOT μΉνμ  - Native AOT μλ리μ€λ₯Ό μν΄ μ€κ³ β μ΅μνμ λ¬λ μ»€λΈ - λͺ μ€λ‘ Python μ€ν β Apache 2.0 λΌμ΄μ μ€
Python ννμ νκ°λΆν° 볡μ‘ν λ°μ΄ν° κ΅νκΉμ§, pythonnetμ΄λ CSnakesλ³΄λ€ ν¨μ¬ κ°λ²Όμ΄ λμμ λλ€.
μ¬μ© μμ: Python.Initialize(pythonLibraryPath); var executor = Python.GetInstance(); var result = executor.Evaluate("sum([1,2,3,4,5])"); Console.WriteLine(result?.GetInt32()); // 15
π GitHub: https://github.com/rkttu/dotnetpy
#λ·λ· #νμ΄μ¬ #μ€νμμ€ #μ°λ #μ½λ© #AI #κ°λ°μ