append()
A = {'a': 1, 'b':2}
B = {'b': 2, 'c':3, 'd':4}
C = []
C.append(A)
C.append(B)
print(C)
[{'a': 1, 'b':2}, {'b': 2, 'c':3, 'd':4}]
inp = "#"
lis = []
while inp != "":
lis.append(list(inp))
inp = str(input("請輸入字串:"))
print(lis[1:])
請輸入字串:我愛iThome
請輸入字串:Python真棒
請輸入字串:
[['我', '愛', 'i', 'T', 'h', 'o', 'm', 'e'], ['P', 'y', 't', 'h', 'o', 'n', '真', '棒']]
···