标签:
""""
# -*- coding: cp936 -*-
def number():
for x in range(1,5):
for y in range(1,5):
for z in range(1,5):
if x!=y and y!=z and z!=x:
print x,y,z
if x%2!=1 and y%2!=1 and z%2!=1:
print x,y,z
if __name__==‘__main__‘:
number()
"""
#0到10000之间的所有数不包含5,10,15,30,60的倍数
#当出现97到123之间的数的时候,就显示ascii码(现在只搞小写)
t=[]
def num():
for i in range(1,3001):
if i%5==1 and i%15==1 and i%10==1 and i%30==1 and i%60==1:
print i,
for i in range(97,123):
print chr(i),
print ord(chr(i))
if __name__==‘__main__‘:
num()
py练习之0到10000之间的所有数不包含5,10,15,30,60的倍数
标签:
原文地址:http://www.cnblogs.com/mhxy13867806343/p/4156450.html