使用C#调用Python脚本,带参数列表
摘要:static void Main(string[] args) { string[] strArr;//参数列表 string sArguments = @"Pythons.py";//这里是python的文件名字 RunPythonScript(sArguments, "-u", strArr); }public static void RunPythonScript(string sArgName, string args = "",params string[] teps) ...
阅读全文
posted @
2013-04-09 16:32
非“程”勿扰
阅读(1827)
推荐(0)
python,在已有的文件夹下创建新的时间文件夹。
摘要:废话不多说,直接贴出源码year = "2012"month = "10"day = "31"path = "D:\\Env\\bair\\"title_year = str(year)title_month = str(month)title_day = str(day)new_path_year = os.path.join(path,title_year)if not os.path.isdir(new_path_year): os.makedirs(new_path_year) new_path_month
阅读全文
posted @
2012-10-31 10:14
非“程”勿扰
阅读(1486)
推荐(0)