# -*- coding: utf-8 -*-
"""
Created on Wed May 15 05:36:18 2019
@author: User
"""
with open('D:/a.txt') as file:
data = file.read
print(data)
这个不清楚为什么没有运行成功:
<built-in method read of _io.TextIOWrapper object at 0x000000C7D0E98EA0>
# -*- coding: utf-8 -*-
"""
Created on Wed May 15 05:36:18 2019
@author: User
"""
with open('D:/a.txt') as file:
data = file.read
print(data)
这个不清楚为什么没有运行成功:
<built-in method read of _io.TextIOWrapper object at 0x000000C7D0E98EA0>