stuNum = '201709090049'
print('年级是:'+stuNum[0:4])
print('专业编号是:'+stuNum[4:9])
print('序号是:'+stuNum[-3:])
IDNo= '440301199808130621'
print('省市是:'+IDNo[0:2])
print('生日是:'+IDNo[-8:-4])
print('性别是:'+IDNo[-2])
id = '440301199808130621'
area = id[0:6]
birthday = id[6:14]
sex = id[-2]
print(area,birthday,sex)
if(int(sex) % 2 == 0):
print('girl')
else:
print('boy')
![](https://images2018.cnblogs.com/blog/1380140/201805/1380140-20180523195144549-770451322.png)
print(ord('+'))
print(chr(9800))
print(chr(9801))
for i in range(12):
print(9800+i,chr(9800+i))
![](https://images2018.cnblogs.com/blog/1380140/201805/1380140-20180523205228343-809525168.png)
s = input('明文:')
for c in s:
print(chr(ord(c)+3),end='')
![](https://images2018.cnblogs.com/blog/1380140/201805/1380140-20180523211153593-774796122.png)
s = input('密文:')
for c in s:
print(chr(ord(c)-3),end='')
![](https://images2018.cnblogs.com/blog/1380140/201805/1380140-20180523211301934-451116853.png)