for x in ['0','1','2','3','4','5','6','7','8','9']:
for y in [ '0','1','2','3','4','5','6','7','8','9']:
if x >= y:
continue
print x + y
for y in [ '0','1','2','3','4','5','6','7','8','9']:
if x >= y:
continue
print x + y
2019-10-18
x1 = 1
d = 3
n = 100
x100 = 1;
#index 0
while n >1:
print(x1);
x1 = x1 + d;
x100 += x1;
n = n-1;
continue
print x100
d = 3
n = 100
x100 = 1;
#index 0
while n >1:
print(x1);
x1 = x1 + d;
x100 += x1;
n = n-1;
continue
print x100
2019-10-15
# -*- coding: utf-8 -*-
print '''静夜思
床前明月光,
疑是地上霜。
举头望明月,
低头思故乡。'''
这才是正解
print '''静夜思
床前明月光,
疑是地上霜。
举头望明月,
低头思故乡。'''
这才是正解
2019-10-14
for x in range(1,10):
for y in range(0,10):
if(x<y):
print(x*10+y)
for y in range(0,10):
if(x<y):
print(x*10+y)
2019-10-13
sum = 0
x = 0
while True:
x = x + 1
if x > 100:
break
elif not (x%2):
continue
else:
sum+=x
print sum
x = 0
while True:
x = x + 1
if x > 100:
break
elif not (x%2):
continue
else:
sum+=x
print sum
2019-10-13
sum = 0
i = 1
for i in range(0,101):
i += 1
sum = sum + i*i
print (sum)
问一下大佬们这个对吗
i = 1
for i in range(0,101):
i += 1
sum = sum + i*i
print (sum)
问一下大佬们这个对吗
2019-10-13