我试图shell到一个非python子进程,并允许它从python继承stdin和stdout. - 我正在使用subprocess.Popen
如果我从控制台调用,这可能会有效,但是当我使用python shell时它肯定不起作用
(我顺便使用IDLE)
有没有办法说服python允许非python子进程将它的stdout打印到python shell?
我想创建一组(int 的)集合
就像是:
SortedSet<SortedSet<int>>
Run Code Online (Sandbox Code Playgroud)
或者
HashSet<HashSet<int>>
Run Code Online (Sandbox Code Playgroud)
但是当尝试匹配集合时,它使用 ReferenceEquals 进行比较
因此对我的目的来说毫无用处
有没有办法让一组集合在 C# 中有用?