# 想產生一個List，儲存1*1 1*2 1*3...1*9 2*1 2*2... 9*9 所有數值
m=[]
for x in range(1,10):
    for y in range(1,10):
        m.append(x*y)
print(m)

# List Comprehensions 可以單行解決
m=[x*y for x in range(1,10) for y in range(1,10)]
print(m)


# 1 ~ 100 排除2, 3, 5的倍數
m=[]
for x in range(1,101):
    if x%2!=0 and x%3!=0 and x%5!=0:
        m.append(x)
print(m)

# List Comprehensions
m = [x for x in range(1,101) if x%2!=0 and x%3!=0 and x%5!=0]
print(m)
cfdfc19d176f77ff08ab69112a30bf1d2ece799a
<mask token>

<mask token>
for x in range(1, 10):
    for y in range(1, 10):
        m.append(x * y)
print(m)
<mask token>
print(m)
<mask token>
for x in range(1, 101):
    if x % 2 != 0 and x % 3 != 0 and x % 5 != 0:
        m.append(x)
print(m)
<mask token>
print(m)

m = []
for x in range(1, 10):
    for y in range(1, 10):
        m.append(x * y)
print(m)
m = [(x * y) for x in range(1, 10) for y in range(1, 10)]
print(m)
m = []
for x in range(1, 101):
    if x % 2 != 0 and x % 3 != 0 and x % 5 != 0:
        m.append(x)
print(m)
m = [x for x in range(1, 101) if x % 2 != 0 and x % 3 != 0 and x % 5 != 0]
print(m)

# 想產生一個List，儲存1*1 1*2 1*3...1*9 2*1 2*2... 9*9 所有數值
m=[]
for x in range(1,10):
    for y in range(1,10):
        m.append(x*y)
print(m)

# List Comprehensions 可以單行解決
m=[x*y for x in range(1,10) for y in range(1,10)]
print(m)


# 1 ~ 100 排除2, 3, 5的倍數
m=[]
for x in range(1,101):
    if x%2!=0 and x%3!=0 and x%5!=0:
        m.append(x)
print(m)

# List Comprehensions
m = [x for x in range(1,101) if x%2!=0 and x%3!=0 and x%5!=0]
print(m)