2.22 pass语句
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
# 求在2的100次方中删除所有的9后的数字:
num = 2**100
without9 = ''
for digit in str(num):
if digit == "9":
pass
else:
without9 += digit
print("2**100 is: %d \nwithout 9 is :%s" %(num,without9))