摘要: import re import time import os.path work_dir = os.getcwd() + '\\' file_time = time.strftime("%y%m%d%H%M%S") file_name = "" terminal_words = "" freque 阅读全文
posted @ 2021-10-20 20:30 Annzi-Py 阅读(338) 评论(0) 推荐(0)
摘要: import re s = r'^(?P<path>(?:[a-zA-Z]:)?\\(?:[^\\\?\/\*\|<>:"]+\\)+)(?P<filename>(?P<name>[^\\\?\/\*\|<>:"]+?)\.(?P<ext>[^.\\\?\/\*\|<>:"]+))$' file_d 阅读全文
posted @ 2021-10-20 17:33 Annzi-Py 阅读(1309) 评论(0) 推荐(0)
摘要: lst1 = [1, 5, 6, 78, 95, 34, 56, 51, 5, 25, 55, 4, 5, 45, 25, 44, 54, 4] def bubble_sort(lst): """ 冒泡排序 :param lst: input list; :return: sorted list; 阅读全文
posted @ 2021-10-20 10:09 Annzi-Py 阅读(35) 评论(0) 推荐(0)
摘要: # print star_tower func; def star_tower(char="*", num=7): """ Based on observations of the model, n = floors: * # 12 - [2*n-2*i]=12 and 1 * [2*i-1]=1 阅读全文
posted @ 2021-10-20 09:12 Annzi-Py 阅读(285) 评论(0) 推荐(0)