-module(helloworld).
-export([start/0]).
-record(person, {name = "", address}).
-record(employee, {person, id}).
start() ->
P =#employee{person=#person{name="John",address="A"},id=1},
io:fwrite("~p~n",[P#employee.id]).
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266332.html