Learn you some erlang-Modules

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_34376435/article/details/89335187

1.调用其它模块的函数嫌麻烦时,可以用-import(Module,[F1,F2]).这样的话就不用写前面的模块名直接调用了。不过不推荐这样做。
2.编译的时候可以加一些参数比如-debug_info,-{outdir,Dir},-export_all,-{d,Macro}等等。
3.使用module_info()函数可以获得该模块的属性。

猜你喜欢

转载自blog.csdn.net/qq_34376435/article/details/89335187
今日推荐