摄氏度

#摄氏度#

a = int(input('摄氏度转换为华氏摄氏度请按1\n 华氏摄氏度转化为摄氏度请按2\n'))

if a==1:
celsius = float(input('输入摄氏度:'))

fahrenheit = (celsius * 1.8) + 32
fahrenheit=celsius*9/5+32

print('{:.2f}摄氏度转为华氏温度为{:.2f}'.format (celsius,fahrenheit))


 

#循环网址#

print('https://www.360kan.com/dianying/list.php?cat=100&pageno=3')
for s in range (4,200):
print('https://www.360kan.com/dianying/list.php?cat=100&pageno='+str(s))




 

#字谜游戏#

 

#解析身份证#

id='440281199908084412'
if (int(id[-2])%2==1):
sex='男'
else :
sex='女'
print("省份编号:"+id[13:15]+"生日:"+id[6:14]+ "性别:"+sex)

 

#解析学号#

xh='201606050035'
print("级别:"+xh[0:4]+"系号:"+xh[4:6]+"专业号:"+xh[6:8]+"学号"+xh[8:12])



 


posted @ 2018-09-10 09:33  cjh陈  阅读(421)  评论(0)    收藏  举报