加个变量,每查询一次-1呗
```python i = 0 total = 10 while True: i = i + 1 total = total - 1 print("您已经查询了%d次,还剩%d次" %(i,total)) if total == 0: break
```