#
# from common.fileUtls import FileUtils
#
# id2,name='1234','ddd院区'
# oldinfo=(id2,name)
# info=('new1234','new_ddd院区')
# FileUtils().w_info2_new(info,'demo-ui','院区新增',oldinfo)

# str=""" DR_ID, order_no, target_corp_id, target_branch_id,
#                                                  target_dept_id, target_dept_name, target_stock_id
#                                                  , target_area_code, source_id, source_corp_id, source_branch_id,
#                                                  source_dept_id, source_dept_name, source_stock_id, source_area_code,
#                                                  accounter, account_date,
#                                                  pickOrderNo, pickBillId, psiDeptOutBillId, psiDeptOutOrderNo
#                                                  , create_user, create_time, last_modified, last_modified_user
# """
#
# str2=str.split(',')
# print(len(str2))
import sys

class Logger(object):
    def __init__(self, filename):
        self.terminal = sys.stdout
        self.log = open(filename, "a")

    def write(self, message):
        self.terminal.write(message)
        self.log.write(message)

    def flush(self):
        pass

# sys.stdout = Logger("output.txt")
# sys.stderr = Logger("error.txt")

# print("Hello, this is a test message.")