This commit is contained in:
yumoqing 2023-12-18 18:39:23 +08:00
parent 6b766496f1
commit 3382ffb1ba
2 changed files with 12 additions and 1 deletions

10
ahserver/filetest.py Normal file
View File

@ -0,0 +1,10 @@
import os
def current_fileno():
with open(__file__, 'r') as f:
return f.fileno()
if __name__ == '__main__':
for i in range(1000):
print(current_fileno())

View File

@ -28,6 +28,7 @@ from sqlor.crud import CRUD
from .xlsxData import XLSXData
from .uriop import URIOp
from .error import Success, Error, NeedLogin, NoPermission
from .filetest import current_fileno
from .serverenv import ServerEnv
@ -167,4 +168,4 @@ def initEnv():
g.NeedLogin = NeedLogin
g.NoPermission = NoPermission
g.password_encode = password
g.current_fileno = current_fileno