feat: add function map, change host.py to main.py

This commit is contained in:
7a1dd609-d238-4580-9d5f-ee8412b0f5bc
2025-01-15 23:19:14 +08:00
parent 1f5988a145
commit 0385cac2ed
6 changed files with 8926 additions and 0 deletions

17
map.py Normal file
View File

@ -0,0 +1,17 @@
import json
from sdgb import sdgb_api
def map(userId):
data = json.dumps({
"userId": int(userId),
"nextIndex": 0,
"maxCount": 600
})
map_result = json.loads(sdgb_api(data, "GetUserMapApi", userId))
return map_result
if __name__ == "__main__":
print(map(int(input())))