dynamically1 [python] dynamically create variables as objects and associate them with specific values (e.g., worksheets) If you want to dynamically create variables as objects with names like ws_1, ws_2, and so on, and associate them with specific values (e.g., worksheets), you can use a list or a dictionary to store these objects. Here's an example using a dictionary: # Create a dictionary to store worksheet objects worksheet_dict = {} # Create and store worksheet objects for i in range(1, 6): worksheet_name = f'.. 2023. 9. 14. 이전 1 다음