我想将字符串从 php 脚本发送到 python:
php 脚本:
$row = "successful";
$c= escapeshellcmd('python C:\wamp64\www\project\GUI.py ' .$row);
echo $c;
蟒蛇:
url1 = 'http://localhost:9090/project/file.php'
x2 = urllib.request.urlopen(url1)
data = x2.read()
d = str(data)
encode = x2.info().get_content_charset('utf8')
print(d)
我在python脚本中什么也没得到请帮助谢谢