2017-04-17 59 views

回答

1

您可以使用類似:

f=open("some_file.txt", "a+") # opens file in append mode 
f.write(uut.execute('show radius statistics')) # appends data to file 
f.close() # close file 
+0

謝謝。它真的有效 – shadevi

+0

我有兩個文件,其中有一行「AAA SMU Testing-1」。如何比較這兩個文件並匹配這兩個文件中間那個特定的字符串? – shadevi

+0

你可能想要開一個新的問題。我很樂意爲您提供幫助,只需在此處發佈問題鏈接即可。 –

相關問題