python
head=int(input())
leg=int(input())
for x in range(1, head):
y = a - x
if 2 * x + 4 * y == leg:
print('鸡的数量:'x )
print('兔的数量:'y )
else:
print('输入不合理,不存在合理答案。')
问一下,为什么
这个位置会标红显示语法错误啊
python
head=int(input())
leg=int(input())
for x in range(1, head):
y = a - x
if 2 * x + 4 * y == leg:
print('鸡的数量:'x )
print('兔的数量:'y )
else:
print('输入不合理,不存在合理答案。')
问一下,为什么
这个位置会标红显示语法错误啊