我目前正在为Plaxis编写一个python脚本,它使用远程API python环境。 我想知道我是否能运行exe。API环境中本地计算机中的文件。我试过用通常的方法来经营一家公司exe.NET文件在Python脚本中,但没有成功。非常感谢你的帮助! 这是我的密码:
from plxscripting.easy import *
s_i, g_i = new_server('localhost', 10000, password='123456')
i = "1"
a = int(16)
b = int(16)
address= "E:\\python practics\\test" + str(i) + ".p2dx"
g_i.save(address)
g_i.gotostages()
import subprocess
RmdNumGen = "E:\\python practics\\random numebr generator.exe"
process = subprocess.Popen(RmdNumGen, stdin=PIPE, stdout=PIPE, creationflags=0x08000000)
p.communicate(a,b)
g_i.InitialPhase.ShouldCalculate = True
g_i.Phase_1.ShouldCalculate = True
g_i.calculate()
exit()
我不熟悉popen的用法,但代码中有一个明显的错误: 尝试过程.沟通而不是p
你在处理Plaxis中的某种概率形式分析吗?关于这一点,有几篇论文。你知道吗
相关问题 更多 >
编程相关推荐