郑毅 6 months ago
parent
commit
c098f1ec25
1 changed files with 6 additions and 1 deletions
  1. 6 1
      __main__.py

+ 6 - 1
__main__.py

@@ -1,8 +1,13 @@
+import re
 import time
 
 
 def main():
-    print('[{}] Hello world!'.format(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))))
+    # print('[{}] Hello world!'.format(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))))
+    str = '15555555555'
+    n = len(str)
+    new_str = str[0:int(n/3)] +re.sub(r'.', '*', str[int(n/3):int(n*2/3)]) + str[int(n*2/3):]
+    print(new_str)
 
 
 # 程序入口