我在Windows Powershell中创建了以下命名管道。在
# .NET 3.5 is required to use the System.IO.Pipes namespace
[reflection.Assembly]::LoadWithPartialName("system.core") | Out-Null
$pipeName = "pipename"
$pipeDir = [System.IO.Pipes.PipeDirection]::InOut
$pipe = New-Object system.IO.Pipes.NamedPipeServerStream( $pipeName, $pipeDir )
现在,我需要一些Python代码片段从上面创建的命名管道中读取。Python能做到吗?在
提前谢谢!在
礼貌:http://jonathonreinhart.blogspot.com/2012/12/named-pipes-between-c-and-python.html
这是C代码
下面是Python代码:
^{pr2}$将C代码转换为.ps1文件。在
相关问题 更多 >
编程相关推荐