我想知道我的代碼哪里出錯了,系統一直提示



uj5u.com熱心網友回復:
代碼沒錯啊 不過你接收輸入那里一般不用eval 如果輸入是整型直接用int(input())就行了uj5u.com熱心網友回復:
最好是貼代碼,print(rn(n)),rn函式中,print(n;"是閏年“)
uj5u.com熱心網友回復:
def rn(n):
if n%4==0:
print(n,'是')
else:
print('不是')
n=int(input('輸入年份'))
rn(n)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/236209.html
上一篇:AttributeError: 'function' object has no attribute 'HTML'
