#!/usr/bin/env python
#-*- coding:utf-8 -*-

import math
# num = int(input("请输入一个整数："))
#
# for i in range(2, int(math.sqrt(num)+1)):
#     if num%i==0:
#         print("不是质数")
#         break
# else:
#     print("它是一个质数")
#

pid = "123456"
print(pid[:-1])  # 12345
print(pid[-1])  # 6

cf8acbcb563d9b7b53680808486b97de69603690
<mask token>

<mask token>
print(pid[:-1])
print(pid[-1])

<mask token>
pid = '123456'
print(pid[:-1])
print(pid[-1])

import math
pid = '123456'
print(pid[:-1])
print(pid[-1])

#!/usr/bin/env python
#-*- coding:utf-8 -*-

import math
# num = int(input("请输入一个整数："))
#
# for i in range(2, int(math.sqrt(num)+1)):
#     if num%i==0:
#         print("不是质数")
#         break
# else:
#     print("它是一个质数")
#

pid = "123456"
print(pid[:-1])  # 12345
print(pid[-1])  # 6
