leeyisoft 发表于 2016-8-5 10:16:29

binary_to_term(Md5). ** exception error: bad argument


请高手帮忙看看为什么报错???

(t@ddg)168> greeting:module_info().[{module,greeting}, {exports,[{validation_tests,1},         {before_create,1},         {attribute_names,1},         {attribute_types,1},         {database_columns,1},         {database_table,1},         {validate_types,1},         {validate,1},         {save,1},         {set,2},         {set,3},         {attributes,1},         {belongs_to_names,1},         {belongs_to_types,1},         {belongs_to,1},         {id,1},         {greeting_text,1},         {get,2},         {new,2},         {instance,2},         {module_info,0},         {module_info,1}]}, {attributes,[{vsn,},            {lager_records,[]}]}, {compile,[{options,[{parse_transform,lager_transform}]},         {version,"7.0.1"}]}, {native,false}, {md5,<<191,25,59,133,149,240,157,243,138,114,66,230,242,

Md5 = <<191,25,59,133,149,240,157,243,138,114,66,230,242,
      81,225,42>>.
(t@ddg)170> Md5 = <<191,25,59,133,149,240,157,243,138,114,66,230,242,(t@ddg)170>         81,225,42>>.<<191,25,59,133,149,240,157,243,138,114,66,230,242,81,225,42>>(t@ddg)171> binary_to_term(Md5).** exception error: bad argument   in functionbinary_to_term/1      called as binary_to_term(<<191,25,59,133,149,240,157,243,138,114,66,230,242,81,                                 225,42>>)

dreamxyp 发表于 2017-1-2 10:46:39

<<191,25,59,133,149,240,157,243,138,114,66,230,242,81,
                                 225,42>>    不是 一个合法的
页: [1]
查看完整版本: binary_to_term(Md5). ** exception error: bad argument