所以,现在检查脚本中加载的文件数: array(2) { [0]=> string(50) "/path/to/demos/autoload-2/index.php" [1]=> string( 54) "/path/to/demos/autoload-2/Classes/A.php" } 这时候你就载入了你想用的了。