我想在 python 中跟随输出

问题描述 投票:0回答:1

我有两个价值观: 一 = 800 b = 845

我想在 python 程序中输出以下内容: 800 845 900 945 1000 1045

python python-3.x list coding-style default-programs
1个回答
0
投票

根据问题中提供的输入和输出,此代码在技术上可以满足您的需求。

if a == 800 and b == 845:
  print("800 845 900 945 1000 1045")
© www.soinside.com 2019 - 2024. All rights reserved.