python - 从 lua 脚本运行 python 脚本
问题描述
******************我有两个脚本******************************
文件名:abcd.py
def fun() :
x = 1
return x
z = fun()
print z
文件名 xyz.lua
os.execute('start cmd /c C:/Python34/python.exe "C:/Folder/abcd.py"')
我没有得到结果。请帮我解决这个问题,我如何从 lua 执行 python 脚本。在这里我想从 xyz.lua 运行 abcd.py 脚本
我在windows环境下工作。
解决方案
推荐阅读
- c# - C#:默认情况下使 System.Data.Services.Client.DataServiceQuery 异步
- google-cloud-dataflow - Apache Beam:升级到 2.5.0 后出现异常
- vue.js - 页面在链接时也可以工作,但在重新加载时会中断
- angular - PrimeNG 标题模板
- c# - 如何使用 selenium 3.13.1 和 C# 使用默认配置文件启动 Firefox
- netsuite - 使用 PHPToolkit 的 Netsuite 基于令牌的身份验证 (TBA)?
- request-headers - 如何从 webhook 请求者获取 HTTPS 标头
- single-sign-on - 注册服务提供者时出现 SSOCircle 错误 0007
- vtd-xml - VTD-XML 元素片段不正确
- html - 单选按钮(作为按钮)流入框架