【发布时间】:2019-08-28 21:35:14
【问题描述】:
我必须用我的字典把这句话粗略翻译成英文,但我不知道怎么做。
c1 = "befreit"
c2 = "baeche"
c3 = "eise"
c4 = "sind"
c5 = "strom"
c6 = "und"
c7 = "vom"
mydict = {c1:"liberated", c2:"brooks", c3:"ice", c4:"are", c5:"river", c6:"and", c7:"from"}
print(mydict.keys())
print(mydict.values())
phrase = "vom eise befreit sind strom und baeche"
print(phrase)
phrase.split()
for x in phrase:
#something goes here
【问题讨论】:
标签: python dictionary translate