(Python) 리스트 내포
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 data_list1 = [1, 2, 3, 4, 5] print("data_list1: {0} {1}".format(type(data_list1), data_list1)) # data_list1: [1, 2, 3, 4, 5] data_list2 = [] for item in data_list1: data_list2.append(item) print("data_list2: {0} {1}".format(type(data_list2), data_list2)) # data_list2: [1, 2, 3, 4, 5] data_list3 = [item for item in data_list1] print("dat..
Python/Concept
2020. 1. 13. 23:10