📜  在 python 代码示例中找到没有迭代

📅  最后修改于: 2022-03-11 14:46:49.049000             🧑  作者: Mango

代码示例1
ps = 1000
print("%12s%18s" % ("Problen Size", "iterations"))
for count in range(5):
  number = 0
  work = 1
  for j in range(ps):
    for k in range(ps):
      number += 1
      work += 1
      work -= 1

  print("%12d%18d" % (ps, number))
  ps *= 2