Erlang/OTP 17 [erts-6.2] [async-threads:10] 原工作目录:"d:/erl6.2/usr" 当前工作目录:"d:/work" Eshell V6.2 (abort with ^G) 1> hello : start(). Hello world ok 2> my_module : pie(). 3.14 3> my_module : print(). ** exception error: undefined function my_module:print/0 4> my_module : print(223444). The value of Term is: 223444. ok 5> my_module : print(22344hello). * 1: syntax error before: hello 5> my_module : print(hello). The value of Term is: hello. ok 6> my_module : print(22344hello). * 1: syntax error before: hello 6> my_module : print(32#hello). The value of Term is: 18306744. ok 7> my_module : print(22344+hello). ** exception error: an error occurred when evaluating an arithmetic expression in operator +/2 called as 22344 + hello 8> my_module : print("22344"+hello). ** exception error: an error occurred when evaluating an arithmetic expression in operator +/2 called as "22344" + hello 9> my_module : print("22344"hello). * 1: syntax error before: hello 9> my_module : print(hello 122421 23412 412). * 1: syntax error before: 122421 9> my_module : print("hello 122421 23412 412"). The value of Term is: [104,101,108,108,111,32,49,50,50,52,50,49,32,50,51,52,49,50,32,32,52,49,50]. ok 10> my_module : print($"hello 122421 23412 412"). 10> my_module : print($hello 122421 23412 412). 10> . 10> my_module : print(32#hello). 10> 10> 10> User switch command --> j 1* {shell,start,[init]} --> 1 Unknown command --> c 1 10> my_module : print(hello). 10> 10> 10> 10> 10> 10> 10> 10> 10> 10> 10> 10> q(). 10> 10> 10> 10> 10> 10> 10> User switch command --> j 1* {shell,start,[init]} --> k 1 --> j --> s --> j 2* {shell,start,[]} --> c Eshell V6.2 (abort with ^G) 1> my_module : print("sdfasf1243213412"). The value of Term is: [115,100,102,97,115,102,49,50,52,51,50,49,51,52,49,50]. ok 2> my_module : print($sdfasf1243213412). * 1: syntax error before: dfasf1243213412 2> my_module : print("sdfasf1243213412"). The value of Term is: [115,100,102,97,115,102,49,50,52,51,50,49,51,52,49,50]. ok 3> my_module : print(sdfasf1243213412). The value of Term is: sdfasf1243213412. ok 4> my_module : print(11sdfasf1243213412). * 1: syntax error before: sdfasf1243213412 4> my_module : print([11sd,fasf1243213412]). * 1: syntax error before: sd 4> my_module : print(["11sd",fasf1243213412]). The value of Term is: [[49,49,115,100],fasf1243213412]. ok 5> my_module : print($"["11sd",fasf1243213412]"). 5> 5> 5> 5> User switch command --> s --> j 2 {shell,start,[]} 3* {shell,start,[]} --> k 2 --> j 3* {shell,start,[]} --> c 3 Eshell V6.2 (abort with ^G) 1> c = '$"srdgegr134' 1> . ** exception error: no match of right hand side value '$"srdgegr134' 2> c = ['$"srdgegr134]. 2> 2> 2> 2> 2> c. 2> 2> 2> j 2> User switch command --> j 3* {shell,start,[]} --> --> --> --> --> -->