day3
1.
n=6789
print(n//100%10)
2.
n=12345
print('万位:',n//10000)
print('千位:',n%10000//1000)
print('百位:',n%1000//100)
print('十位:',n%100//10)
print('个位:',n%10)
3.
num = int (input('请输入一个数:'))
if num % 3 == 0 and num % 7 == 0:
print('y')
4.
num = int (input('请输入一个数:'))
if (num % 3 == 0 or num % 7 == 0) and not (num % 3 == 0 and num % 7 == 0):
print('y')
5. 判断闰年的条件:能被4整除而不能被100整除
year=int(input('请输入年份:'))
if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0):
print('闰年')
else:
print('不是闰年')
6.
time = 15000
h = 15000 // 3600
m = 15000 % 3600 // 60
s = 15000 % 3600 % 60
print(h,'时',m,'分',s'秒')
7.
w=int(input('体重:'))
h=float(input('身高:'))
if 18.5<w/h**2<24.9:
print('标准')
else:
print('不标准')