使用python处理列表

2024-10-02 10:18:42 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用python处理列表

输入:

[[u'Tempoh', '', '', u'Belanjawan semasa', '', '', u'Perbelanjaan pembangunan', '', '', u'Lebihan / kurangan(-) keseluruhan', u'Sumber-sumber kewangan', '', '', '', '', '', ''], ['', '', '', u'Current budget', '', '', u'Development expenditure', '', '', '', u'Sources of finance', '', '', '', '', '', ''], ['', '', '', u'Hasil', u'Perbelanjaan1', u'Lebihan / kurangan(-)', u'Perbelanjaan pembangunan kasar', u'Tolak: Terimaan balik pinjaman', u'Perbelanjaan pembangunan bersih', '', u'Pinjaman dalam negeri', '', '', u'Pinjaman luar negeri', '', '', u'Penggunaan harta2'], ['', '', '', '', '', '', '', '', '', '', u'Domestic borrowing', '', '', u'Foreign borrowing', '', '', ''], [u'Period', '', '', '', '', '', '', '', '', '', u'Peminjaman kasar dalam negeri', u'Tolak: Pembayaran balik dalam negeri', u'Peminjaman bersih dalam negeri', u'Peminjaman kasar luar negeri', u'Tolak: Pembayaran balik luar negeri', u'Peminjaman bersih luar negeri', ''], ['', '', '', u'Revenue', u'Expenditure1', u'Surplus / deficit(-)', u'Gross development expenditure', u'Less: Loan recoveries', u'Net development expenditure', u'Overall surplus / deficit(-)', u'Gross domestic borrowing', u'Less: Domestic repayment', u'Net domestic borrowing', u'Gross foreign borrowing', u'Less: Foreign repayment', u'Net foreign borrowing', u'Use of assets']

输出:

我想用上一个字符串来填充这个空白

提前谢谢


Tags: netlessgrossnegeridalamexpenditureborrowingbalik

热门问题