📜  如何将字典值转换为 int - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:14.084000             🧑  作者: Mango

代码示例1
mydict={"english":input("Enter your marks:\n"),
"nepali":input("Enter your marks:\n"),
"math":input("Enter your marks:\n"),
"science":input("Enter your marks:\n"),
"geo": input("Enter your marks:\n"),
"physics": input("Enter your marks:\n")}
int(mydict["english"])
int(mydict["nepali"])
int(mydict["math"])
int(mydict["science"])
int(mydict["geo"])
int(mydict["physics"])
a = mydict