好的,所以我正在编写一个程序来查找星期几,并且程序运行顺利,直到这个块
D = input()
A = ( (14 - 'month') /12)
Y = ( 'Year' - 'A' )
MonthProblem = ( 'month' + 12 * 'A' - 2 )
week = ( ('D' + 'Y' + 'Y'/4 - 'Y'/100 + 'Y'/400 + 31 * 'MonthProblem'/12) % 7 )
错误是 TypeError: unsupported operand type(s) for -: 'int' and 'str'