init
This commit is contained in:
commit
ca9736d8ec
122 files changed
+28514
No files matched your search
@@ -0,0 +1,25 @@
|
||||
INPUT_FILE = "test.text"
|
||||
|
||||
|
||||
def main():
|
||||
with open(INPUT_FILE, 'r') as file:
|
||||
data: list[str] = file.readlines()
|
||||
|
||||
for line in data:
|
||||
record, groups = line.split()
|
||||
|
||||
groups: list[int] = [int(g) for g in groups.split(',')]
|
||||
|
||||
# for group in groups:
|
||||
|
||||
# # if '#' * group in record:
|
||||
# # groups.remove(group)
|
||||
# # record = record.replace('#' * group, '')
|
||||
|
||||
print(f'{record} {groups}')
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in new issue
Block a user