题目:文件“静夜思.txt”的编码为“utf-8”,以下程序语句的输出结果为:withopen(“静夜思.txt”,’r’,encoding=”UTF-8″)asf:print(f)
静夜思李白床前明月光,疑似地主霜。举头望明月,低头思故乡。
静夜思
<_io.TextIOWrapper name='静夜思.txt' mode='r' encoding='utf-8'>
<_io.TextIOWrapper name='静夜思.txt' mode='r' encoding='GBK'>
题目:文件“静夜思.txt”的编码为“utf-8”,以下程序语句的输出结果为:withopen(“静夜思.txt”,’r’,encoding=”UTF-8″)asf:print(f)
静夜思李白床前明月光,疑似地主霜。举头望明月,低头思故乡。
静夜思
<_io.TextIOWrapper name='静夜思.txt' mode='r' encoding='utf-8'>
<_io.TextIOWrapper name='静夜思.txt' mode='r' encoding='GBK'>