字符串操作

id = '4406821999065206327'
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')

  

for i in range(12):
    print(9800+i,chr(9800+i))

  

plainText=input('message:')
for c in plainText:
    print(chr(ord(c)-3),end='')

  

posted @ 2018-05-23 20:56  Doshelly  阅读(86)  评论(0编辑  收藏  举报