• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Block Explorer 
  • Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Hive Proposals 
  • OpenHive Chat 
  • Developer Portal 
  • Hive Whitepaper 
  • Privacy Policy
  • Terms of Service
logo
  • Posts
  • Proposals
  • Witnesses
  • Our dApps
LoginSign up
You are viewing a single comment's thread from:

RE: python 读文件报错

  • View the full context
tengyue (27)in #python • 7 years ago

这样写也行:

with open('C:/Users/tengy/Desktop/aaa.txt',encoding='UTF-8') as f:
    print(f.read())
7 years ago in #python by tengyue (27)
$0.00
    Reply 0
    Sort:  
  • Trending
    • Trending
    • Votes
    • Age