'''
country,挪威,瑞典,丹麥,德國,英國,
like,狗,鳥,貓,馬,魚
house,藍,紅,綠,白,黃
drink,茶,咖啡,啤酒,牛奶,水
smoke,Prince,Pall_Mall,Dunhill,Blue_Master,Blend
'''
countries = '挪威,瑞典,丹麥,德國,英國'.split(',')
likes = '狗,鳥,貓,馬,魚'.split(',')
houses = '藍,紅,綠,白,黃'.split(',')
drinks = '茶,咖啡,啤酒,牛奶,水'.split(',')
smokes = 'Prince,Pall_Mall,Dunhill,Blue_Master,Blend'.split(',')
c = 1
for country in countries:
for like in likes:
for house in houses:
for drink in drinks:
for smoke in smokes:
if country == '英國' and house != '紅':continue
if country != '英國' and house == '紅':continue
if country != '瑞典' and like == '狗':continue
if country == '瑞典' and like != '狗':continue
print(c,country,like,house,drink,smoke)
c = c + 1
沒有留言:
張貼留言