返回值处理
This commit is contained in:
@@ -40,6 +40,7 @@ def get_first_group_id(key):
|
||||
if group_ids:
|
||||
first_group_id = next(iter(group_ids)) # 获取集合中的第一个元素
|
||||
print(f"First Group ID for {key}: {first_group_id}")
|
||||
return first_group_id
|
||||
else:
|
||||
print(f"Key '{key}' has no associated group IDs.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user