缺乏立场论据

2024-06-16 08:30:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我在测试我的代码,得到了这个错误:

Please enter the customer's name: 1
Please enter the customer's Phone Number:01506890639
Please enter the size of group: 2
Please enter the rating of the meal: 4
Do you wish to continue: Y/N?n

The largest group that visited had a cohort of:2

Traceback (most recent call last):
  File "E:\CWtsk\code2.py", line 107, in <module>
    main()
  File "E:\CWtsk\code2.py", line 13, in main
    mealrating(name, phone, groupno, score, review)
TypeError: mealrating() takes 1 positional argument but 5 were given

在这一点之前

^{pr2}$

Tags: ofthenameinpymainlinegroup