This repository has been archived on 2026-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2022-02-08 19:46:11 +08:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
# -- coding:utf-8 --
|
|
|
|
|
# @Author: markushammered@gmail.com
|
|
|
|
|
# @Development Tool: PyCharm
|
|
|
|
|
# @Create Time: 2022/2/3
|
|
|
|
|
# @File Name: numberlen.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
number = 1576451745
|
|
|
|
|
|
|
|
|
|
if len(str(number)) <= 10:
|
|
|
|
|
zero_count = 10 - len(str(number))
|
|
|
|
|
final_str = '0' * zero_count + str(number)
|
|
|
|
|
print(final_str[9])
|
|
|
|
|
else:
|
2022-02-03 20:02:38 +08:00
|
|
|
print('Too much to count')
|