我是 python 和这个论坛的新手。在线学习对我来说不起作用,所以我不能只去找导师。这可能是我忘记的一些小事。我欢迎您能给我任何帮助。
我试图使输出看起来像这样: Her name is Emmylou; 她有望于 2021 年秋季毕业;她的账单已付清;她的专业是考古学;她属于这些学校俱乐部——摄影、表演和欢乐合唱团
Emm = {'name' : 'Emmylou', 'graduate' : 'Fall 2021', 'bill' : 'paid', 'major' : 'Archeology', 'clubs-' : 'Photography, Acting and Glee'}
for Key, Value in Emm.items():
print(f"Her {Key} is {Value} and she is on track to {Key} in {Value}; Her {Key} is {Value}; Her {Key} is {Value}; She belongs to these school {Key} {Value}")
输出很混乱,当我运行它时看起来像这样:
Her name is Emmylou and she is on track to name in Emmylou; Her name is Emmylou; Her name is Emmylou; She belongs to these school name Emmylou
Her graduate is Fall 2021 and she is on track to graduate in Fall 2021; Her graduate is Fall 2021; Her graduate is Fall 2021; She belongs to these school graduate Fall 2021
Her bill is paid and she is on track to bill in paid; Her bill is paid; Her bill is paid; She belongs to these school bill paid
Her major is Archeology and she is on track to major in Archeology; Her major is Archeology; Her major is Archeology; She belongs to these school major Archeology
Her clubs- is Photography, Acting and Glee and she is on track to clubs- in Photography, Acting and Glee; Her clubs- is Photography, Acting and Glee; Her clubs- is Photography, Acting and Glee; She belongs to these school clubs- Photography, Acting and Glee
蝴蝶不菲
慕的地8271018
手掌心
相关分类