首页 / 词典 / good

feof

  • 网络文件结束标志;测试文件是否结束
feoffeof
  1. The feof command detects whether you have already read to the end of the file and returns True or False .

    feof命令将检测您是否已经读到文件的末尾并返回True或False。

  2. Note that feof also returns False if you 're reading a URL and the socket has timed out because you no longer have data to read .

    如果读取的是URL并且套接字由于不再有任何数据可以读取而超时,则feof也将返回False。