Erlang中文论坛
标题: binary_to_term(Md5). ** exception error: bad argument [打印本页]
作者: leeyisoft 时间: 2016-8-5 10:16
标题: 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,[254013561862298686825212980122843472170]},
{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 function binary_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
<<191,25,59,133,149,240,157,243,138,114,66,230,242,81,
225,42>> 不是 一个合法的
欢迎光临 Erlang中文论坛 (https://bbs.erldoc.com/) |
Powered by Discuz! X3.3 |