代码如下:
![image.png](https://static.studygolang.com/200710/9725c51df1ec56daee47c137901924ed.png)
正常执行结果为下图,输入字符串回车会输出字符串长度
![image.png](https://static.studygolang.com/200710/81e38ff43bedc4ca249b434383b74949.png)
-----------------------------------------------------------------------------------------------------------------------------
nohup 模式运行
![image.png](https://static.studygolang.com/200710/91dfd53c166308e503592c91026ec217.png)
![image.png](https://static.studygolang.com/200710/4920a769f1a4534ee524f77392ec4cc1.png)
出现了一堆莫名输入 长度还是0, 请问怎么解
![image.png](https://static.studygolang.com/200710/f1f5d3c151e034fec826e4aac55cefad.png)