standards = ['1', '2', '3']
sections = [['A', 'B', 'C'], ['A', 'B', 'C'], ['A', 'B', 'C']]
classes_maker_counter = 0
for i in standards:
for j in sections[classes_maker_counter]:
for k in j:
classes = f"alloted_{i}_{k}= {}"
todisplay = f"to_display_{i}_{k} = {}"
exec(classes)
exec(todisplay)
classes_maker_counter += 1
当我运行这个我得到这个错误
f-string: empty expression not allowed
有没有办法做到这一点...
胡子哥哥
相关分类