#!/usr/bin/python3
for
x
in
range
(
1
,
23
):
y
=
35
-
x
if
4
*
x
+
2
*
y
=
=
94
:
print
(
'兔子有%s只,鸡有%s只'
%
(x, y))
#!/usr/bin/python3
for
x
in
range
(
1
,
23
):
y
=
35
-
x
if
4
*
x
+
2
*
y
=
=
94
:
print
(
'兔子有%s只,鸡有%s只'
%
(x, y))