Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- class Config:
- MOTOR = list(range(3000, 7000))
- MOBIL = list(range(0,3000))
- BIS = list(range(7000,8000))
- PENUMPANG = list(range(8000,9000))
- BEBAN = list(range(9000,10000))
- PLAT_AWAL = ['B','C']
- PLAT_KE_1 = ['U','B','P','S','T','Z','E','N','C','V','K','F','W']
- PLAT_KE_2 = ['A','B','D','W','E','R','U','Z','F','K','O','I','Y','V','P','M','G','J','L','C','T']
- PLAT_KE_2_SPECIAL = ['HX','IX','UA','TX','UX','QN']
- PLAT_KE_3 = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
- def mobil():
- for i in Config.PLAT_AWAL:
- for j in Config.MOBIL:
- plat_1 = []
- plat_1.append(i+str(j))
- #print(plat_1)
- for a in Config.PLAT_KE_1:
- for b in Config.PLAT_KE_2:
- for c in Config.PLAT_KE_3:
- l = []
- l.append(a+b+c)
- e = (plat_1+l)
- e = [''.join(e)]
- #e.append(plat_1 + l)
- print(e)
- def mobil2():
- for i in Config.PLAT_AWAL:
- for j in Config.MOBIL:
- plat_1 = []
- plat_1.append(i+str(j))
- #print(plat_1)
- for a in Config.PLAT_KE_1:
- for b in Config.PLAT_KE_2_SPECIAL:
- l = []
- l.append(a+b)
- e = []
- e.append(plat_1 + l)
- print(e)
- def motor():
- for i in Config.PLAT_AWAL:
- for j in Config.MOTOR:
- plat_1 = []
- plat_1.append(i+str(j))
- #print(plat_1)
- for a in Config.PLAT_KE_1:
- for b in Config.PLAT_KE_3:
- for c in Config.PLAT_KE_3:
- l = []
- l.append(a+b+c)
- e = (plat_1+l)
- #e.append(plat_1 + l)
- print(e)
- def iter():
- for i in mobil():
- yield i
- start = iter()
- for i in start:
- i.next()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement