Why there are two txt=fo.read (2)

Is it necessary for txt = fo.read (2) before

while to appear?

Why not connect to while, directly after fo = open (fname, "r")

how to understand the logic in this?

...
txt = fo.read(2)
while txt != "":
    txt = fo read(2)
...

Nov.12,2021

python does not have do while
and this kind of problem can be found out by running it yourself.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e479c7-43bc3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e479c7-43bc3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?