stuNum='201709080035'
print('年级是:'+stuNum[0:4])
print('专业编号是:'+stuNum[4:9])
print('序号是:'+stuNum[-3:])
![](https://images2018.cnblogs.com/blog/1377912/201805/1377912-20180521165224331-1307236095.png)
![](https://images2018.cnblogs.com/blog/1377912/201805/1377912-20180521165235185-1048499516.png)
stuNum = '441827199812236025'
print('所在省市:'+stuNum[0:2])
print('所在地区:'+stuNum[2:4])
print('所在县区:'+stuNum[4:6])
print('出生日期:'+stuNum[6:14])
print('户口所归属的派出所:'+stuNum[14:16])
print('性别及顺序:'+stuNum[16:17])
print('校验码:'+stuNum[17:18])
![](https://images2018.cnblogs.com/blog/1377912/201805/1377912-20180521165326807-493431850.png)
plainText = input('message:')
for c in plainText:
print(chr(ord(c)+5))
plainText = input('message:')
for c in plainText:
print(chr(ord(c)-5))
for i in range(12):
print(9800+i,chr(9800+i))
![](https://images2018.cnblogs.com/blog/1377912/201805/1377912-20180521165450518-1986322054.png)
plainText = input('message:')
for c in plainText:
print(chr(ord(c)+3),end=''
![](https://images2018.cnblogs.com/blog/1377912/201805/1377912-20180521165602825-817515937.png)