Def jia (t) :
Yi. Append (t)
Def jian (t) :
Yi. Remove (t)
Print (" you are welcome to use no contact point meal, businesses "Lao wang home cooking," ")
JHF=[{' dishes' : 'green pepper shredded meat,' price ':' 15 yuan '}, {' dishes' : 'kung pao chicken', 'price' : '10 yuan'}, {' dishes' : 'mapo tofu,' price ':' 20 yuan '}, \
{' dishes' : 'tomato scrambled eggs',' price ':' 15 yuan '}, {' dishes' : 'sweet pepper pork', 'price' : '10 yuan'}, {' dishes' : 'oil stuffy prawn', 'price' : '40 yuan/jin'}, \
{' dishes' : "sichuan style stew pork" and 'price' : '10 yuan'}, {' dishes' : 'chicken enchiladas',' price ':' 25 yuan '}, {' dishes' : 'the yuxiang pork', 'price' : '15 yuan'}, \
{' dishes' : 'snow peas shoe drop soup', 'price' : '35'}, {' dishes' : 'laver egg drop soup' and 'price' : '30 yuan (unlimited time)}, {' dishes' :' rice ', 'price' : '2 yuan/person'}, \
{' dishes' : 'eggs Fried rice', 'price', '3 yuan/person'}, {' dishes' : 'gate-crashers celebrated', 'price' : '5 yuan/listen to (10 yuan/bottle)'}, {' dishes' : 'add much treasure', 'price', '4 yuan/listen'}, \
{' dishes' : 'E', 'price' : '5 yuan/bottle'}]
Zongji=int (2)
Yi=[]
Ro=int (input (" you like a few courses: "))
Print (" \ 000\000\000 -- -- -- -- -- -- -- -- -- -- the menu -- -- -- -- -- -- -- -- -- - ")
JJJ=[]
For r in JHF:
Print (' \ 000\000\000, r/' dishes', '000 \' r [' price '])
JJJ. Append (r [' dishes'])
For s in the range (0, ro) :
Tian=input (" please input your points:)
If tian in JJJ:
Jia (tian)
The else:
Print (" does not exist the food!!!
")If 'rice' in yi:
Wan=int (input (" bowls of rice would you like:))
Jian (' rice ')
You=(wan, 'rice bowl')
Jia (you)
Elif 'Fried rice with egg in yi:
Wan=int (input (", "do you want a few bowl of egg Fried rice))
Jian (' Fried rice with egg ')
You=(wan, 'the bowl of egg Fried rice')
Jia (you)
Elif 'oil stuffy prawn in yi:
Jin=int (input (", "do you want a few jins oil stuffy prawn))
Jian (' oil stuffy prawn)
You=jin, 'jin oil stuffy prawn'
Jia (you)
The import time
Tim=time. Strftime (' % % Y - m - H: % d % % m: % S ', time. The localtime (time. Time ()))
With the open (FTR. TXT, mode='a') as f:
F.w rite (' {} \ 000\000\000 users ordered {}, a total of ${} \ n '. The format (Tim, yi, zongji))
Print (" thank you for using contactless order mode, in {} {}, you charge $2 package fee total ${} we have records, sent to you later, ". The format (Tim, yi, zongji))
Bosses, please help to take a look at how to calculate the total money???????
More urgent, online etc.!!!!!!!!!!!!!!!!!!!