ahserver_g/ahserver/filetest.py

15 lines
202 B
Python
Raw Permalink Normal View History

2023-12-18 18:39:23 +08:00
import os
def current_fileno():
2023-12-19 10:15:34 +08:00
fn = './t.txt'
f = open(fn, 'w')
ret = f.fileno()
f.close()
os.remove(fn)
return ret
2023-12-18 18:39:23 +08:00
if __name__ == '__main__':
for i in range(1000):
print(current_fileno())