14 lines
309 B
Python
14 lines
309 B
Python
import os
|
|
|
|
# 记录加入的群组
|
|
class GroupCtl :
|
|
|
|
path = os.path.join(os.getcwd(),"joined_group.cfg")
|
|
groups:list[str] = []
|
|
|
|
def __init__(self) -> None:
|
|
fd = os.open(self.path,os.O_CREAT|os.W_OK)
|
|
with open(fd) as file :
|
|
self.groups.append(file.readline())
|
|
|