要讀取StringIO,可以用一個str初始化StringIO,然後,像讀文件一樣讀取:. >>> from io import StringIO >>> f = StringIO('Hello!\
確定! 回上一頁