在pythonversion3.4.3中,divmod显示为无效语法

2024-05-23 20:41:42 发布

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

x = int(input("Enter first number: "))

y = int(input("Enter second number: "))

print divmod(x,y)

它以无效语法显示了divmod。我使用的是python3.4.3版本。在


Tags: 版本numberinput语法intfirstprintenter