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
def current_fileno():
with open(__file__, 'r') as f:
return f.fileno()
fn = './t.txt'
f = open(fn, 'w')
ret = f.fileno()
f.close()
os.remove(fn)
return ret
if __name__ == '__main__':
for i in range(1000):