Message387908
"""In Python 3.9, the following code can be run after commenting sleep, otherwise the file will always be empty"""
import time
file=open("data.txt","a+")
flag=0
while True:
time.sleep(0.00001)
file.write("test\n")
print("add over") |
|
Date |
User |
Action |
Args |
2021-03-05 22:43:29 | terry.reedy | unlink | issue43365 messages |
2021-03-02 10:49:24 | minaki_2525 | set | recipients:
+ minaki_2525 |
2021-03-02 10:49:23 | minaki_2525 | set | messageid: <1614682163.99.0.9936995249.issue43365@roundup.psfhosted.org> |
2021-03-02 10:49:23 | minaki_2525 | link | issue43365 messages |
2021-03-02 10:49:23 | minaki_2525 | create | |
|