2011-11-28 43 views

回答

6

twisted.internet.stdio.StandardIO不「存儲」任何地方的數據。它是一種與協議相關的運輸工具。您與其關聯的協議可以對傳送給它的數據執行任何操作。

您可以在Twisted文檔中找到使用StandardIO的兩個示例,https://twistedmatrix.com/documents/current/_downloads/stdin.pyhttps://twistedmatrix.com/documents/current/_downloads/stdiodemo.py

+0

Got it!謝謝 – Suruchi

+0

讓 - 保羅,請多幫忙。請根據上述答案給我舉個例子。 – Suruchi

+1

感謝讓保羅.. – Suruchi