December 29, 2019 MRKJ page125 combat

checi = [ ' T40 ' , ' T298 ' , ' z 158 ' ] 
dizhi = [ ' CJ ' , ' BJ ' , ' SH ' ] 
the atime = [ ' 2H ' , ' IH ' , ' 3H ' ] 
C1 = dict (ZIP (checi, dizhi))
 Print (C1) 
A1 = dict (ZIP (checi,
atime))
print(a1)
print('checi ' , ' \ T ' , ' dizhi ' , ' \ T ' , ' the atime ' )
 for I in checi:
     Print (I, ' \ T ' , C1 [I], ' \ T ' , A1 [I]) # Note \ t usage and effects of 
CC = the INPUT ( ' you Buy at the checi: ' )
 Print ( ' Sorry '  IF CC not  in checi the else  '')
people=input('your name:')
print('you buy zhe'+c1[cc]+','+people+' please take the ticket')

 》》》》

{ 'T40': 'CJ', 'T298': 'BJ', 'z 158': 'SH'}
{ 'T40': '2H', 'T298': 'IH', 'z 158': '3H'}
dizhi atime checi
T40 CJ 2H
T298 BJ 1H
z 158 SH 3H
you Buy at The checi: T40

your name:SXJ
you buy zhecj,SXJ please take the ticket

Guess you like

Origin www.cnblogs.com/python1988/p/12116082.html