提交 3202eac5 编写于 作者: bmyy11's avatar bmyy11

上传新文件

上级 7b465db5
def six():
global r,x,y,o,g,t,h,t,m,cuowu,cuo
import time,random
r = 0
x = 0
y = 0
o = 0
g = 6 #告诉程序一共听写几次
m = 0
cuo = 0
t = {}
h = {}
t = {}
cuowu = {}
yi = {'first floor':'一楼',
'second floor':'二楼',
"teacher's office":"教师办公室",
'library':'图书馆',
'playground':'操场',
'computer room':'计算机房',
'art room':'美术教室',
'music room':'音乐教室',
'next to':'紧邻',
'homework':'作业',
'class':'班级',
'forty':'四十',
'way':'方向'}
er = {'breakfast':'早餐',
'English class':'英语课',
'lunch':'午饭',
'music class':'音乐课',
'PE class':'体育课',
'dinner':'正餐',
'get up':'起床',
'go to school':'上学',
'go home':'回家',
'go to bed':'去睡觉',
'over':'结束',
'now':'现在',
"o'clock":"……点钟",
'kid':'小孩',
'thirty':'三十',
'hurry up':'快点',
'come on':'加油',
'just a minute':'稍等一会儿'}
san = {'cold':'冷的',
'cool':'凉的',
'warm':'温暖的',
'hot':'热的',
'sunny':'阳光充足的',
'windy':'多风的',
'cloudy':'多云的',
'snowy':'下雪的',
'rainy':'阴雨的',
'outside':'在户外',
'be careful':'小心',
'weather':'天气',
'New York':'纽约',
'how about':'...怎么样?',
'degree':'度',
'world':'世界',
'London':'伦敦',
'Moscow':'莫斯科',
'Singapore':'新加坡城',
'Sydney':'悉尼',
'fly':'放(风筝)',
'love':'爱你的'}
si = {'tomato':'西红柿',
'potato':'马铃薯',
'green beans':'豆角',
'carrot':'胡萝卜',
'horse':'马',
'cow':'牛',
'sheep':'绵羊',
'hen':'母鸡',
'these':'这些',
'yum':'味道好',
'animal':'动物',
'those':'那些',
'garden':'花园',
'farm':'农场',
'goat':'山羊',
'eat':'吃'}
wu = {'clothes':'服装',
'pants':'裤子',
'hat':'(常指带橼的)帽子',
'dress':'连衣裙',
'skirt':'女裙',
'coat':'大衣',
'sweater':'毛衣',
'sock':'短袜',
'shorts':'短裤',
'jacket':'夹克衫',
'shirt':'衬衫',
'yours':'你的(名词性物主代词)',
'whose':'谁的',
'mine':'我的(名词性物主代词)',
'pack':'收拾',
'wait':'等待'}
liu = {'glove':'手套',
'scarf':'围巾',
'umbrella':'伞',
'sunglasses':'太阳镜',
'pretty':'美丽的',
'expensive':'贵的',
'cheap':'便宜的',
'nice':'好的',
'try on':'试穿',
'size':'尺码',
'of course':'当然',
'too':'太',
'just':'正好',
'how much':'多少钱',
'eighty':'八十',
'dollar':'元',
'sale':'特价销售',
'more':'更多的',
'us':'我们(宾格)'}
e = {0:yi,1:er,2:san,3:si,4:wu,5:liu}
def q(v):
global r,x,y,o,g,t,h,t,m,cuowu,cuo
dict_key_ls = list(v.keys())
random.shuffle(dict_key_ls)
new_dic = {}
for key in dict_key_ls:
new_dic[key] = v.get(key)
v = new_dic
for i in v:
cuowu = v[i]
if cuowu == "教师办公室":
q = input(cuowu + ":")
w = i
elif cuowu == "……点钟":
q = input(cuowu + ":")
w = i
else:
q = input(cuowu + ':')
w = i
if q == w:
print('对喽!')
r += 1
else:
print('错啦错啦!')
t[cuowu] = w
x += 1
print('结束!')
print('一共对',r,'道,错',x,'道')
if x != 0:
cuo += 1
print('\n不扎实',x,'道!巩固错题:')
x = 0
for i in t:
if i == "讲台":
q = input(i + ":")
w = i
else:
q = input(i + ':')
w = i
w = t[i]
if q == w:
print('对喽!')
y += 1
else:
print('错啦错啦!')
o += 1
m += 1
x += 1
h[i] = w
print('结束!')
print('一共对',y,'道,错',o,'道')
r = 0
c = 0
y = 0
o = 0
x = 0
t = {}
for l in range(g):
print('\n第',l+1,'单元!\n')
v = e[l]
q(v)
if m != 0:
html = open('cuowu.txt','r')
php = html.read()
html.close()
go = open('cuowu.txt','a')
print('\n错题答案:共',m,'个二错单词\n')
for i in h:
d = h[i]
print(i , d)
if i not in php or d not in php:
go.write("'")
go.write(i)
go.write("'")
go.write(':')
go.write("'")
go.write(d)
go.write("'")
go.write(',\n')
go.close()
time.sleep(10)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册