Python读取文件的几种方式

Fatal error: Uncaught Error: Call to a member function id() on array in /data/htdocs/snakehacker.host.smartgslb.com/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /data/htdocs/snakehacker.host.smartgslb.com/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /data/htdocs/snakehacker.host.smartgslb.com/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', ' file = open("h...') #3 /data/htdocs/snakehacker.host.smartgslb.com/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code(' file = open("h...', Object(CrayonLang), Object(CrayonHighlighter)) #4 /data/htdocs/snakehacker.host.smartgslb.com/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(186): CrayonHighlight in /data/htdocs/snakehacker.host.smartgslb.com/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36