This commit is contained in:
yumoqing 2023-12-19 10:15:34 +08:00
parent 27ea6eb99e
commit 4207f2c4bb

View File

@ -1,8 +1,12 @@
import os import os
def current_fileno(): def current_fileno():
with open(__file__, 'r') as f: fn = './t.txt'
return f.fileno() f = open(fn, 'w')
ret = f.fileno()
f.close()
os.remove(fn)
return ret
if __name__ == '__main__': if __name__ == '__main__':
for i in range(1000): for i in range(1000):