In [1]:
f1=open('作业一素材.txt',mode='r',encoding='utf-8') 
#打开文件
text=f1.read()
#读取文件
print(text)
f1.close()
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 [5]:
lines = text. splitlines()
#把文件按照行切分
print(lines)
['010', '2019年度报告\u2002AnnuAl 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]:
line = lines[-3]
#找到年报最后一行(不包括页脚)
words =line.split(' ')
#把年报最后一行用空格切分
print(words)
['Information', 'Disclosures', '–', 'Non-recurring', 'Profits', 'and', 'Losses', 'in', 'the', 'reporting', 'period.']
In [7]:
word=words[-1]
#找到最后一行的最后一个单词
word=word[0:-1]
#找出最后一个单词的长度
print(word)
len(word)
period
Out[7]:
6
In [ ]: