ji tu = int (input(‘请输入鸡兔总数:’))
tui = int (input(‘请输入腿的总数:’))
tu = (tui-ji tu*2)/2
if int (tu) = tu:
print (‘鸡:’,ji tu-tu, ‘兔:’,tu)
else:
print (‘数据输入不正确’)
①在打印机里打印相关的文本或者数字等
②可以用来画图
③在屏幕中输出相应的文本或者数字等
④执行语句print(“python”,3.7)时会出错
x=input("Please input x:")
if x<0 or x>=20:
print(x//10)
elif 0<=x<5:
print(x)
elif 5<=x<10:
print(3*x-5)
elif 10<=x<20:
print(0.5*x-2)