0.1.175
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| [metadata] | [metadata] | ||||||
| # replace with your username: | # replace with your username: | ||||||
| name = guan | name = guan | ||||||
| version = 0.1.174 | version = 0.1.175 | ||||||
| author = guanjihuan | author = guanjihuan | ||||||
| author_email = guanjihuan@163.com | author_email = guanjihuan@163.com | ||||||
| description = An open source python package | description = An open source python package | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| Metadata-Version: 2.4 | Metadata-Version: 2.4 | ||||||
| Name: guan | Name: guan | ||||||
| Version: 0.1.174 | Version: 0.1.175 | ||||||
| Summary: An open source python package | Summary: An open source python package | ||||||
| Home-page: https://py.guanjihuan.com | Home-page: https://py.guanjihuan.com | ||||||
| Author: guanjihuan | Author: guanjihuan | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| # Module: data_processing | # Module: data_processing | ||||||
|  |  | ||||||
| # 获取运行的日期和时间并写入文件 | # 获取运行的日期和时间并写入文件 | ||||||
| def statistics_with_day_and_time(content='', filename='time_logging', file_format='.txt'): | def logging_with_day_and_time(content='', filename='time_logging', file_format='.txt'): | ||||||
|     import datetime |     import datetime | ||||||
|     datetime_today = str(datetime.date.today()) |     datetime_today = str(datetime.date.today()) | ||||||
|     datetime_time = datetime.datetime.now().strftime('%H:%M:%S') |     datetime_time = datetime.datetime.now().strftime('%H:%M:%S') | ||||||
|   | |||||||
| @@ -38,3 +38,8 @@ def pdf_to_text(pdf_path): | |||||||
|     print('Warning: The current function name has been deprecated, which will be deleted in the future version. Please change it into guan.pdf_to_text_with_pdfminer3k().') |     print('Warning: The current function name has been deprecated, which will be deleted in the future version. Please change it into guan.pdf_to_text_with_pdfminer3k().') | ||||||
|     content = guan.pdf_to_text_with_pdfminer3k(pdf_path) |     content = guan.pdf_to_text_with_pdfminer3k(pdf_path) | ||||||
|     return content |     return content | ||||||
|  |  | ||||||
|  | def statistics_with_day_and_time(content='', filename='time_logging', file_format='.txt'): | ||||||
|  |     import guan | ||||||
|  |     print('Warning: The current function name has been deprecated, which will be deleted in the future version. Please change it into guan.logging_with_day_and_time().') | ||||||
|  |     guan.logging_with_day_and_time(content=content, filename=filename, file_format=file_format) | ||||||
		Reference in New Issue
	
	Block a user