python將文件讀取爲字符串

python將文件讀取爲字符串 參考這個python http://blog.csdn.net/nanjunxiao/article/details/9086079web 在文件內容不是很大的狀況下,能夠直接讀取svg import os def read_file_as_str(file_path): # 判斷路徑文件存在 if not os.path.isfile(file_
相關文章
相關標籤/搜索