result = [f'{x:04x}' for x in range(256) if x % 2 == 0]
print(result)
a, b = 0, 1
while a <100:
print(a,end=', ')
a, b = b, a+b
print()
a,b =240,360
while a!=b:
if a<b: a,b = b,a
a,b = b,a-b
print(a)
我和我的好朋友、寶貝學生互動及學習使用Blogger的地方。
result = [f'{x:04x}' for x in range(256) if x % 2 == 0]
print(result)
a, b = 0, 1
while a <100:
print(a,end=', ')
a, b = b, a+b
print()
a,b =240,360
while a!=b:
if a<b: a,b = b,a
a,b = b,a-b
print(a)
沒有留言:
張貼留言