
Eshell V12.2.1 (abort with ^G)\n1> A1=[1,2,3].\n[1,2,3]\n2> io:format(\"~p~n\", A1).\n** exception error: bad argument\n in function io:format/2\n called as io:format(\"~p~n\",[1,2,3])\n *** argument 1: wrong number of arguments\n3> A2=[[1,2,3]].\n[[1,2,3]]\n4> io:format(\"~p~n\", A2).\n[1,2,3]\nok\n5> \n\n\u96be\u9053 io:format \u76f4\u63a5\u6253\u5370\u53d8\u91cf\u53c2\u6570\u7684\u8bdd\uff0c\u9700\u8981\u53d8\u91cf\u662f\u5d4c\u5957\u5217\u8868\uff1f\u6c42\u8001\u53f8\u673a\u89e3\u60d1\u4e3a\u4ec0\u4e48\u8981\u8fd9\u6837\u8bbe\u8ba1\uff08\u672c\u4eba erlang \u65b0\u624b\uff09\u3002
\n\u5982\u679c\u76f4\u63a5\u5728\u8c03\u7528 io:format \u7684\u65f6\u5019\uff0c\u7ed9\u53c2\u6570\u4f20\u9012\u4e00\u4e2a\u5217\u8868\u53c2\u6570\u7684\u8868\u8fbe\u5f0f\u4e5f\u5c31\u4e0d\u4f1a\u62a5\u9519\u3002
\nhttps://stackoverflow.com/questions/2523250/erlang-ioformat-and-a-hanging-web-application \u8fd9\u91cc\u6211 google \u5230\u7684\u4e00\u4e2a\u7591\u95ee\u89e3\u7b54\uff0c\u4f46\u8fd8\u662f\u6709\u4e9b\u4e0d\u660e\u767d io:format \u8c03\u7528\u7684\u65f6\u5019\uff0c\u4f20\u9012\u53d8\u91cf\u53c2\u6570\u548c\u5217\u8868\u8868\u8fbe\u5f0f\u7684\u533a\u522b\u3002
\n", "date_published": "2024-01-07T04:46:20+00:00", "title": "\u5173\u4e8e erlang \u7684 io:format \u51fd\u6570\u4f7f\u7528\u95ee\u9898\uff1a\u201c\u5217\u8868\u53d8\u91cf\u201d \u548c \u201c\u5217\u8868\u53c2\u6570\u201d", "id": "t/1006539" }, { "author": { "url": "member/dhq", "name": "dhq", "avatar": "https://cdn.v2ex.com/gravatar/b0933d91b3f6acc1cc4fb8fe172e1c1d?s=73&d=retro" }, "url": "t/831184", "title": "erlang inet_db:gethostname() \u673a\u5236\u8bf7\u6559", "id": "t/831184", "date_published": "2022-01-28T11:34:43+00:00", "content_html": "# /etc/hostsRT, \u600e\u4e48\u624d\u80fd\u770b\u61c2\u8fd9\u79cd\u8bed\u6cd5\uff1f\u6709\u4ec0\u4e48\u53ef\u4ee5\u53c2\u8003\u7684\u8d44\u6599\u5417
\n" }, { "author": { "url": "member/yfractal", "name": "yfractal", "avatar": "https://cdn.v2ex.com/gravatar/c29f3ba1a160925f0d91a1da23ee4603?s=73&d=retro" }, "url": "t/647388", "title": "\u641e\u4e86\u4e2a awesome-otp-learning", "id": "t/647388", "date_published": "2020-02-25T06:17:43+00:00", "content_html": "\u5e76\u884c\u3001\u5e76\u53d1\u7f16\u7a0b\u662f\u8ba1\u7b97\u673a\u91cc\u975e\u5e38\u6709\u8da3\u7684\u4e3b\u9898\u3002\u800c Erlang \u6216\u8005\u8bf4 OTP \u65e0\u7591\u662f\u505a\u7684\u6700\u597d\u7684\u3002
\n\u4f46 OTP \u76f8\u5173\u7684\u8d44\u6599\u5374\u975e\u5e38\u5c11\u3002
\n\u6bd4\u5982\u5b58\u50a8\uff0c\u5173\u4e8e ETS \u7684\u5b9e\u73b0\u51e0\u4e4e\u627e\u4e0d\u5230\uff0c\u4f46\u540c\u7c7b\u578b\u7684 Redis\uff0c\u5374\u6709\u4e00\u5927\u628a\u3002
\n\u800c\u4e14 ETS \u8981\u6bd4 Redis \u6709\u8da3\u7684\u591a\uff0cETS \u53ef\u4ee5\u5145\u5206\u5229\u7528\u591a\u6838\u8d44\u6e90\uff0c\u800c Redis \u662f\u5355\u7ebf\u7a0b\u7684\u3002
\n\u8fd9\u5bf9\u60f3\u4e86\u89e3 OTP \u7684\u4eba\uff0c\u662f\u4e00\u4ef6\u5f88\u9057\u61be\u7684\u4e8b\u3002
\n\u6240\u4ee5\u5f00\u4e86\u8fd9\u4e2a awesome-otp-learning \u8fd9\u4e2a repo\uff0c\u7528\u6765\u6536\u96c6 OTP \u5185\u90e8\u5b9e\u73b0\u76f8\u5173\u7684\u8d44\u6599\u3002
\n\u5e0c\u671b\u53ef\u4ee5\u629b\u7816\u5f15\u7389\u3002
\n" }, { "author": { "url": "member/linxu", "name": "linxu", "avatar": "https://cdn.v2ex.com/gravatar/edfe1b033fb224fda97d8616facfe4ef?s=73&d=retro" }, "url": "t/507927", "title": "\u7acb\u4e2a\u8d34\uff0c\u5f00\u59cb\u5b66\u4e60\u4f7f\u7528 erlang\uff0c\u4e0e\u5de5\u4f5c\u65e0\u5173\uff0c\u81ea\u5df1\u5012\u817e\u3002", "id": "t/507927", "date_published": "2018-11-14T14:06:39+00:00", "content_html": "\u300a erlang \u7a0b\u5e8f\u8bbe\u8ba1\u300b\u548c\u300a otp \u5e76\u53d1\u7f16\u7a0b\u300b\u90fd\u8981\u8fc7\u4e24\u8fb9\u4ee5\u4e0a\u3002\n \u8bb0\u5f55\u5b66\u4e60\u7b14\u8bb0\u3002\n \u5199\u4e00\u4e2a\u5c0f\u9879\u76ee\uff0crpc \u6216\u8005 web \u6846\u67b6\u7684\u3002\n\n" }, { "author": { "url": "member/zhongwencool", "name": "zhongwencool", "avatar": "https://cdn.v2ex.com/avatar/d443/7e60/276692_large.png?m=1514165051" }, "url": "t/422851", "date_modified": "2018-01-14T12:48:19+00:00", "content_html": "\u4ee5\u524d Erlang \u7684\u6e90\u7801\u5b89\u88c5\u9700\u8981\u5728erlang.org\u4e0b\u8f7d\uff0c\u56fd\u5185\u901f\u5ea6\u5927\u7ea6\u53ea\u6709 30~50k\uff0c\u5bfc\u81f4\u5b89\u88c5 Erlang \u975e\u5e38\u75db\u82e6\u3002
\n\u73b0\u5728\u4f7f\u7528asdf\u5de5\u5177\u52a0\u53c8\u62cd\u4e91\u955c\u50cf\u53ef\u4ee5\u8fbe\u5230>1M \u7684\u4e0b\u8f7d\u901f\u5ea6\uff0c\u505a\u5230\u4e86\u4e00\u952e\u5feb\u901f\u5b89\u88c5 Erlang\u3002
Erlang \u5b89\u88c5\u6307\u5357
\n$ asdf install erlang 20.0\nDownloading OTP-20.0.tar.gz to /Users/zhongwen/.asdf/plugins/erlang/kerl-home/archives\n % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n100 120 0 120 0 0 101 0 --:--:-- 0:00:01 --:--:-- 101\n100 50.3M 100 50.3M 0 0 1345k 0 0:00:38 0:00:38 --:--:-- 2512k\n\n", "date_published": "2018-01-14T12:45:41+00:00", "title": "\u4f7f\u7528\u53c8\u62cd\u4e91\u955c\u50cf\u52a0\u901f\u4e0b\u8f7d Erlang \u6e90\u7801(\u4e0b\u8f7d\u53ea\u8981 40s)", "id": "t/422851" }, { "author": { "url": "member/zxgngl", "name": "zxgngl", "avatar": "https://cdn.v2ex.com/avatar/11e4/449a/148346_large.png?m=1458378928" }, "url": "t/257366", "title": "Elixir Forum", "id": "t/257366", "date_published": "2016-02-18T07:06:10+00:00", "content_html": "\n" }, { "author": { "url": "member/huanzh", "name": "huanzh", "avatar": "https://cdn.v2ex.com/gravatar/a15f584957d6f9105fd9b648d5c929e6?s=73&d=retro" }, "url": "t/187286", "title": "Erlang Lab \u65b0\u5f00\uff0c\u6b22\u8fce\u8bf4\u8bf4\u8bdd", "id": "t/187286", "date_published": "2015-04-29T09:12:17+00:00", "content_html": "\u5730\u5740\uff1a http://erlab.me
\n\n\u57df\u540d\u5f88\u65e9\u6ce8\u518c\u4e86\uff0c\u6628\u665a\u521a\u642d\u5efa\u3002
\n\nerlanger\u4eec\u5462\uff1f
\n" }, { "author": { "url": "member/yanguango", "name": "yanguango", "avatar": "https://cdn.v2ex.com/avatar/bc94/f75c/49143_large.png?m=1711689083" }, "url": "t/153759", "title": "\u8bf7\u6559\u719f\u6089 Erlang \u7684\u540c\u5b66\u4e00\u4e2a\u95ee\u9898", "id": "t/153759", "date_published": "2014-12-13T17:37:39+00:00", "content_html": "What facilities does Erlang provides to control concurrency? Explain how these facilities could be used to implement a semaphore?" }, { "author": { "url": "member/davidlau", "name": "davidlau", "avatar": "https://cdn.v2ex.com/avatar/6e66/8e75/49468_large.png?m=1771585879" }, "url": "t/128460", "date_modified": "2014-08-17T19:55:33+00:00", "content_html": "", "date_published": "2014-08-17T17:18:11+00:00", "title": "\u6709\u7528 Erlang \u505a\u5f00\u53d1\u7684\u5417\uff1f\u4e00\u822c\u7528\u6765\u505a\u4ec0\u4e48\uff1f", "id": "t/128460" }, { "author": { "url": "member/rcmerci", "name": "rcmerci", "avatar": "https://cdn.v2ex.com/avatar/8f8d/9a0f/66285_large.png?m=1622652228" }, "url": "t/125688", "title": "erlang \u91cc\u9762\uff0c\u4e00\u4e2a\u5173\u4e8e\u5b57\u7b26\u4e32\u7684\u95ee\u9898", "id": "t/125688", "date_published": "2014-08-01T11:21:49+00:00", "content_html": "\u73b0\u5728\u60f3\u628a\u4e00\u4e2a\u5217\u8868 \u6bd4\u5982[{1,2}, {3,4}, rrr],\u8f6c\u6362\u6210\u8fd9\u4e2a\u6837\u5b50\uff1a\"[{1,2}, {3,4}, rrr]\".