zoukankan      html  css  js  c++  java
  • python study demo

    using System;
    using IronPython.Hosting;
    using Microsoft.Scripting.Hosting;

    namespace PythonSample
    {
        class Program
        {
            static void Main(string[] args)
            {
                //study1
                var scriptEngine = Python.CreateEngine();
                scriptEngine.Execute("print \"hello world\"");
                Console.WriteLine("press random key,and contiue...");
                Console.ReadLine();

                //study2
                ScriptRuntime py = Python.CreateRuntime();
                dynamic helloworld = py.UseFile("helloworld.py");
                for (int i = 0; i < 10; i++)
                {
                    Console.WriteLine(helloworld.welcome("Employee #{0}"), i);
                }
                Console.ReadLine();
            }
        }
    }

  • 相关阅读:
    devops
    classloader
    webpack之个人理解
    java map
    前端性能资料
    kibana使用的lucene查询语法
    【转】关于JVM CPU资源占用过高的问题排查
    netstat命令
    使用LR11录制手机脚本
    jemeter逻辑控制器
  • 原文地址:https://www.cnblogs.com/chuncn/p/1779658.html
Copyright © 2011-2022 走看看