尝试以交互方式运行我的主函数时,我收到“格式说明符与参数类型不匹配”错误。我的代码是:
(defun average(grade)
(setq divide (/ grade 10))
(cond ((= divide 10) "A")
((= divide 9) "A")
((= divide 8) "B")
((= divide 7) "C")
((= divide 6) "D")
("F")))
(defun main(g)
(interactive "nGrade: ")
(message "%d" (average g )))
任何人都可以帮助我输入/输出错误吗?谢谢