安装 composer require phpoffice/phpspreadsheet 代码 1、引入包 use PhpOffice\PhpSpreadsheet\Chart\Layout; use PhpOffice\PhpSpreadsheet\Spreadsheet;