current position:Home>How to solve the problem of customization? (Language Python)

How to solve the problem of customization? (Language Python)

2022-02-02 10:44:58 CSDN Q & A

Know a dictionary my_dict={“ Zhang Rong ”:{“ College Computer Foundation ”:90,” Advanced mathematics ”:80,” College English ”:80},“ Li Bin ”: {“ College Computer Foundation ”:87,” Advanced mathematics ”:82,” College English ”:85},” Li Xiaowei ”: {“ College Computer Foundation ”:94,” Advanced mathematics ”:86,” College English ”:90}}, New program , By customizing functions , Realize the automatic statistics of the total score and average score of all courses of each student in the dictionary .




Refer to the answer 1:

This is parsing , Then calculate




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.pythonmana.com/2022/02/202202021044565143.html

Random recommended