杨天明第一次作业

In [3]:
f=open(r"C:\Users\pc\Desktop\金融作业\homework1\作业一素材.txt","r",encoding="UTF-8") 
data = f.read()
print(data)
010
2019年度报告 AnnuAl report
IX. Non-Recurring Profit or Loss
√ Applicable   Not applicable
Unit: RMB
2018  2017 
Item 2019 Note
(Restated) (Restated)
For details, please refer to 
Investment income from disposal of subsidiaries 848,211,045.94 807,518,533.61 – Note 5(3)(a) of Chapter 12 
Financial Report.
Gains on disposals of non-current assets (including 
offsetting amount for the provision of impairment of  31,356,737.19 71,160,937.90 1,075,903,723.03
assets)
It mainly represents 
Government grants recognized in profit or loss for  government subsidies 
the current period (excluding government grants  arising from fiscal 
that are closely related to the Company’s business  545,508,216.82 295,443,847.50 230,922,102.34 appropriation, 
operations, in accordance with national uniform  transportation capacity 
standards) subsidies and tax refund, 
etc.
Net loss/profit arising from business combinations 
involving enterprises under common control from the 
-2,123,517.28 -43,047,655.76 3,495,095.51
beginning of reporting period to the combination 
date
Gains or losses from changes in fair value of financial 
assets and liabilities held for trading, derivative 
financial assets and liabilities, and investment (losses)/ It mainly attributable to the 
gains arising from the disposal of financial assets and  gains arising from changes 
364,072,933.26 -8,398,916.11 14,060,964.04
liabilities held for trading, derivative financial assets  in fair value of other non-
and liabilities and other debt investments, excluding  current financial assets.
hedging activities related to the normal business 
operations of the Company
Income from external entrusted loans – 416,510.40 5,060,742.88
Net amount of other non-operating income and 
-38,285,034.94 13,515,766.49 24,976,445.24
expenses
Less: Income tax effect 159,282,664.33 63,672,015.52 281,823,573.43
    Profit or loss attributable to minority  
716,085.28 620,414.11 1,048,197.18
    shareholders (after tax)
Non-recurring profit or loss attributable to 
1,588,741,631.38 1,072,316,594.40 1,071,547,302.43 –
shareholders of the parent company
Provide explanations for classifying non-recurring profit and loss items defined in the Explanatory Announcement No. 1 for Public Company Information 
Disclosures – Non-recurring Profits and Losses, and for classifying non-recurring profit and loss items listed in the Explanatory Announcement No. 1 for 
Public Company Information Disclosures – Non-recurring Profits and Losses as recurring profit and loss items.
 Applicable √ Not applicable
The Company has not classified non-recurring profit and loss items defined or listed in the Explanatory Announcement No. 1 for Public Company 
Information Disclosures – Non-recurring Profits and Losses in the reporting period.
顺丰控股股份有限公司
S.F. HOLDING CO., LTD.
In [6]:
import re 
f1 = re.compile('.*?(?=\s*\n顺.*?LTD.)',re.DOTALL)
f2 = f1.findall(data)
print(f2)
['010\n2019年度报告\u2002AnnuAl report\nIX. Non-Recurring Profit or Loss\n√ Applicable   Not applicable\nUnit: RMB\n2018  2017 \nItem 2019 Note\n(Restated) (Restated)\nFor details, please refer to \nInvestment income from disposal of subsidiaries 848,211,045.94 807,518,533.61 – Note 5(3)(a) of Chapter 12 \nFinancial Report.\nGains on disposals of non-current assets (including \noffsetting amount for the provision of impairment of  31,356,737.19 71,160,937.90 1,075,903,723.03\nassets)\nIt mainly represents \nGovernment grants recognized in profit or loss for  government subsidies \nthe current period (excluding government grants  arising from fiscal \nthat are closely related to the Company’s business  545,508,216.82 295,443,847.50 230,922,102.34 appropriation, \noperations, in accordance with national uniform  transportation capacity \nstandards) subsidies and tax refund, \netc.\nNet loss/profit arising from business combinations \ninvolving enterprises under common control from the \n-2,123,517.28 -43,047,655.76 3,495,095.51\nbeginning of reporting period to the combination \ndate\nGains or losses from changes in fair value of financial \nassets and liabilities held for trading, derivative \nfinancial assets and liabilities, and investment (losses)/ It mainly attributable to the \ngains arising from the disposal of financial assets and  gains arising from changes \n364,072,933.26 -8,398,916.11 14,060,964.04\nliabilities held for trading, derivative financial assets  in fair value of other non-\nand liabilities and other debt investments, excluding  current financial assets.\nhedging activities related to the normal business \noperations of the Company\nIncome from external entrusted loans – 416,510.40 5,060,742.88\nNet amount of other non-operating income and \n-38,285,034.94 13,515,766.49 24,976,445.24\nexpenses\nLess: Income tax effect 159,282,664.33 63,672,015.52 281,823,573.43\n    Profit or loss attributable to minority  \n716,085.28 620,414.11 1,048,197.18\n    shareholders (after tax)\nNon-recurring profit or loss attributable to \n1,588,741,631.38 1,072,316,594.40 1,071,547,302.43 –\nshareholders of the parent company\nProvide explanations for classifying non-recurring profit and loss items defined in the Explanatory Announcement No. 1 for Public Company Information \nDisclosures – Non-recurring Profits and Losses, and for classifying non-recurring profit and loss items listed in the Explanatory Announcement No. 1 for \nPublic Company Information Disclosures – Non-recurring Profits and Losses as recurring profit and loss items.\n Applicable √ Not applicable\nThe Company has not classified non-recurring profit and loss items defined or listed in the Explanatory Announcement No. 1 for Public Company \nInformation Disclosures – Non-recurring Profits and Losses in the reporting period.', '']
In [8]:
f2=f2[0].replace('.',' ')
f3=f2.split(' ')
print(f3)
['010\n2019年度报告\u2002AnnuAl', 'report\nIX', '', 'Non-Recurring', 'Profit', 'or', 'Loss\n√', 'Applicable', '', '', 'Not', 'applicable\nUnit:', 'RMB\n2018', '', '2017', '\nItem', '2019', 'Note\n(Restated)', '(Restated)\nFor', 'details,', 'please', 'refer', 'to', '\nInvestment', 'income', 'from', 'disposal', 'of', 'subsidiaries', '848,211,045', '94', '807,518,533', '61', '–', 'Note', '5(3)(a)', 'of', 'Chapter', '12', '\nFinancial', 'Report', '\nGains', 'on', 'disposals', 'of', 'non-current', 'assets', '(including', '\noffsetting', 'amount', 'for', 'the', 'provision', 'of', 'impairment', 'of', '', '31,356,737', '19', '71,160,937', '90', '1,075,903,723', '03\nassets)\nIt', 'mainly', 'represents', '\nGovernment', 'grants', 'recognized', 'in', 'profit', 'or', 'loss', 'for', '', 'government', 'subsidies', '\nthe', 'current', 'period', '(excluding', 'government', 'grants', '', 'arising', 'from', 'fiscal', '\nthat', 'are', 'closely', 'related', 'to', 'the', 'Company’s', 'business', '', '545,508,216', '82', '295,443,847', '50', '230,922,102', '34', 'appropriation,', '\noperations,', 'in', 'accordance', 'with', 'national', 'uniform', '', 'transportation', 'capacity', '\nstandards)', 'subsidies', 'and', 'tax', 'refund,', '\netc', '\nNet', 'loss/profit', 'arising', 'from', 'business', 'combinations', '\ninvolving', 'enterprises', 'under', 'common', 'control', 'from', 'the', '\n-2,123,517', '28', '-43,047,655', '76', '3,495,095', '51\nbeginning', 'of', 'reporting', 'period', 'to', 'the', 'combination', '\ndate\nGains', 'or', 'losses', 'from', 'changes', 'in', 'fair', 'value', 'of', 'financial', '\nassets', 'and', 'liabilities', 'held', 'for', 'trading,', 'derivative', '\nfinancial', 'assets', 'and', 'liabilities,', 'and', 'investment', '(losses)/', 'It', 'mainly', 'attributable', 'to', 'the', '\ngains', 'arising', 'from', 'the', 'disposal', 'of', 'financial', 'assets', 'and', '', 'gains', 'arising', 'from', 'changes', '\n364,072,933', '26', '-8,398,916', '11', '14,060,964', '04\nliabilities', 'held', 'for', 'trading,', 'derivative', 'financial', 'assets', '', 'in', 'fair', 'value', 'of', 'other', 'non-\nand', 'liabilities', 'and', 'other', 'debt', 'investments,', 'excluding', '', 'current', 'financial', 'assets', '\nhedging', 'activities', 'related', 'to', 'the', 'normal', 'business', '\noperations', 'of', 'the', 'Company\nIncome', 'from', 'external', 'entrusted', 'loans', '–', '416,510', '40', '5,060,742', '88\nNet', 'amount', 'of', 'other', 'non-operating', 'income', 'and', '\n-38,285,034', '94', '13,515,766', '49', '24,976,445', '24\nexpenses\nLess:', 'Income', 'tax', 'effect', '159,282,664', '33', '63,672,015', '52', '281,823,573', '43\n', '', '', '', 'Profit', 'or', 'loss', 'attributable', 'to', 'minority', '', '\n716,085', '28', '620,414', '11', '1,048,197', '18\n', '', '', '', 'shareholders', '(after', 'tax)\nNon-recurring', 'profit', 'or', 'loss', 'attributable', 'to', '\n1,588,741,631', '38', '1,072,316,594', '40', '1,071,547,302', '43', '–\nshareholders', 'of', 'the', 'parent', 'company\nProvide', 'explanations', 'for', 'classifying', 'non-recurring', 'profit', 'and', 'loss', 'items', 'defined', 'in', 'the', 'Explanatory', 'Announcement', 'No', '', '1', 'for', 'Public', 'Company', 'Information', '\nDisclosures', '–', 'Non-recurring', 'Profits', 'and', 'Losses,', 'and', 'for', 'classifying', 'non-recurring', 'profit', 'and', 'loss', 'items', 'listed', 'in', 'the', 'Explanatory', 'Announcement', 'No', '', '1', 'for', '\nPublic', 'Company', 'Information', 'Disclosures', '–', 'Non-recurring', 'Profits', 'and', 'Losses', 'as', 'recurring', 'profit', 'and', 'loss', 'items', '\n', 'Applicable', '√', 'Not', 'applicable\nThe', 'Company', 'has', 'not', 'classified', 'non-recurring', 'profit', 'and', 'loss', 'items', 'defined', 'or', 'listed', 'in', 'the', 'Explanatory', 'Announcement', 'No', '', '1', 'for', 'Public', 'Company', '\nInformation', 'Disclosures', '–', 'Non-recurring', 'Profits', 'and', 'Losses', 'in', 'the', 'reporting', 'period', '']
In [9]:
while '' in f3:
    f3.remove('')
print(f3)
['010\n2019年度报告\u2002AnnuAl', 'report\nIX', 'Non-Recurring', 'Profit', 'or', 'Loss\n√', 'Applicable', 'Not', 'applicable\nUnit:', 'RMB\n2018', '2017', '\nItem', '2019', 'Note\n(Restated)', '(Restated)\nFor', 'details,', 'please', 'refer', 'to', '\nInvestment', 'income', 'from', 'disposal', 'of', 'subsidiaries', '848,211,045', '94', '807,518,533', '61', '–', 'Note', '5(3)(a)', 'of', 'Chapter', '12', '\nFinancial', 'Report', '\nGains', 'on', 'disposals', 'of', 'non-current', 'assets', '(including', '\noffsetting', 'amount', 'for', 'the', 'provision', 'of', 'impairment', 'of', '31,356,737', '19', '71,160,937', '90', '1,075,903,723', '03\nassets)\nIt', 'mainly', 'represents', '\nGovernment', 'grants', 'recognized', 'in', 'profit', 'or', 'loss', 'for', 'government', 'subsidies', '\nthe', 'current', 'period', '(excluding', 'government', 'grants', 'arising', 'from', 'fiscal', '\nthat', 'are', 'closely', 'related', 'to', 'the', 'Company’s', 'business', '545,508,216', '82', '295,443,847', '50', '230,922,102', '34', 'appropriation,', '\noperations,', 'in', 'accordance', 'with', 'national', 'uniform', 'transportation', 'capacity', '\nstandards)', 'subsidies', 'and', 'tax', 'refund,', '\netc', '\nNet', 'loss/profit', 'arising', 'from', 'business', 'combinations', '\ninvolving', 'enterprises', 'under', 'common', 'control', 'from', 'the', '\n-2,123,517', '28', '-43,047,655', '76', '3,495,095', '51\nbeginning', 'of', 'reporting', 'period', 'to', 'the', 'combination', '\ndate\nGains', 'or', 'losses', 'from', 'changes', 'in', 'fair', 'value', 'of', 'financial', '\nassets', 'and', 'liabilities', 'held', 'for', 'trading,', 'derivative', '\nfinancial', 'assets', 'and', 'liabilities,', 'and', 'investment', '(losses)/', 'It', 'mainly', 'attributable', 'to', 'the', '\ngains', 'arising', 'from', 'the', 'disposal', 'of', 'financial', 'assets', 'and', 'gains', 'arising', 'from', 'changes', '\n364,072,933', '26', '-8,398,916', '11', '14,060,964', '04\nliabilities', 'held', 'for', 'trading,', 'derivative', 'financial', 'assets', 'in', 'fair', 'value', 'of', 'other', 'non-\nand', 'liabilities', 'and', 'other', 'debt', 'investments,', 'excluding', 'current', 'financial', 'assets', '\nhedging', 'activities', 'related', 'to', 'the', 'normal', 'business', '\noperations', 'of', 'the', 'Company\nIncome', 'from', 'external', 'entrusted', 'loans', '–', '416,510', '40', '5,060,742', '88\nNet', 'amount', 'of', 'other', 'non-operating', 'income', 'and', '\n-38,285,034', '94', '13,515,766', '49', '24,976,445', '24\nexpenses\nLess:', 'Income', 'tax', 'effect', '159,282,664', '33', '63,672,015', '52', '281,823,573', '43\n', 'Profit', 'or', 'loss', 'attributable', 'to', 'minority', '\n716,085', '28', '620,414', '11', '1,048,197', '18\n', 'shareholders', '(after', 'tax)\nNon-recurring', 'profit', 'or', 'loss', 'attributable', 'to', '\n1,588,741,631', '38', '1,072,316,594', '40', '1,071,547,302', '43', '–\nshareholders', 'of', 'the', 'parent', 'company\nProvide', 'explanations', 'for', 'classifying', 'non-recurring', 'profit', 'and', 'loss', 'items', 'defined', 'in', 'the', 'Explanatory', 'Announcement', 'No', '1', 'for', 'Public', 'Company', 'Information', '\nDisclosures', '–', 'Non-recurring', 'Profits', 'and', 'Losses,', 'and', 'for', 'classifying', 'non-recurring', 'profit', 'and', 'loss', 'items', 'listed', 'in', 'the', 'Explanatory', 'Announcement', 'No', '1', 'for', '\nPublic', 'Company', 'Information', 'Disclosures', '–', 'Non-recurring', 'Profits', 'and', 'Losses', 'as', 'recurring', 'profit', 'and', 'loss', 'items', '\n', 'Applicable', '√', 'Not', 'applicable\nThe', 'Company', 'has', 'not', 'classified', 'non-recurring', 'profit', 'and', 'loss', 'items', 'defined', 'or', 'listed', 'in', 'the', 'Explanatory', 'Announcement', 'No', '1', 'for', 'Public', 'Company', '\nInformation', 'Disclosures', '–', 'Non-recurring', 'Profits', 'and', 'Losses', 'in', 'the', 'reporting', 'period']
In [10]:
print(f3[-1])
period
In [11]:
print(len(f3[-1]))
6
In [ ]:
 

版权所有 盗版必究

In [ ]: