python windows下的file()
生活随笔
收集整理的這篇文章主要介紹了
python windows下的file()
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
>>> f=open(r'C:\test\test.txt','r')
>>> f.read()
'wewewew'
路徑前加個小r 不然會報錯
轉載于:https://my.oschina.net/tony2015/blog/598479
總結
以上是生活随笔為你收集整理的python windows下的file()的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 屏幕截图的方法
- 下一篇: Android碎片化难题:手游兼容性测试