mirror of
https://github.com/hlt1995/qlScripts.git
synced 2026-11-05 23:26:44 +08:00
Delete fn_print.py
This commit is contained in:
1 parent
b15f59a37f
commit
cf0fac2fd7
1 file changed
-23
-23
@@ -1,23 +0,0 @@
|
||||
# -*- coding=UTF-8 -*-
|
||||
# @Project QL_TimingScript
|
||||
# @fileName fn_print.py
|
||||
# @author Echo
|
||||
# @EditTime 2024/9/24
|
||||
from typing import *
|
||||
|
||||
all_print_list = []
|
||||
|
||||
|
||||
def fn_print(*args, sep=' ', end='\n', **kwargs):
|
||||
global all_print_list
|
||||
output = ""
|
||||
# 构建输出字符串
|
||||
for index, arg in enumerate(args):
|
||||
if index == len(args) - 1:
|
||||
output += str(arg)
|
||||
continue
|
||||
output += str(arg) + sep
|
||||
output = output + end
|
||||
all_print_list.append(output)
|
||||
# 调用内置的 print 函数打印字符串
|
||||
print(*args, sep=sep, end=end, **kwargs)
|
||||
Reference in new issue
Block a user