Python百分号%用法:not enough arguments for format string和%d format: a number is required, not str
Python百分号%用法not enough arguments for format string:正确使用方式是%(course,money)%d format: a number is required, not str:%d可以替换为%sdef study(course,money): print("学习%s,需要学费%s元" %(course,money))执行命令:python main.py study -c 英语 -m 1000输出如下所示:学习英语,需要学