这是我的代码片段,如下所示:
import xmlrpc.client
with xmlrpc.client.ServerProxy('http://localhost:8000/') as server:
while True:
x = int(input('Please enter the first number: '))
y = int(input('Please enter the second number: '))
total = server.add(x, y)
print(x, "+", y, "=", total)
break