例子:
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 for a in range(9+1): 4 for b in range(9+1): 5 i = a * 11
6 j = b * 11
7 if i != j: 8 n = i * 100 + j 9 if int(n**(1/2))**2 == n: 10 print(n)
執行結果爲:7744python