我正在尝试在PHP
中将python3
中的import subprocess
subprocess.call(["php", "./php1.php"])
script_response = subprocess.check_output(["php", "./php1.php"])
函数作为php1.php访问Traceback (most recent call last):
File "test3.py", line 7, in <module>
subprocess.call(["php", "./php1.php"])
File "/usr/lib/python3.5/subprocess.py", line 557, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'php'
。我看到了post
但由于我没有足够的声誉对此发表评论。我在这里发布我的查询。
这是我在这里尝试的代码:
Get-ChildItem -Path $input -Filter '*.dll' | ForEach-Object {
$assembly = [System.Reflection.Assembly]::Load([IO.File]::ReadAllBytes($_.FullName))
Write-Host $assembly.FullName
}
并收到此错误。
||
我想我错过了一些基本的东西。请帮帮我。