I feel silly asking this but: how can I read a string from a console **that is not input but has already been written to the console**?
For instance, if I print a line to the console how can I read it after the fact? I know this is atypical. You shouldn't do it this way. Keep a copy before you output, if you need it.
以上就是Reading already-written text from console的详细内容，更多请关注web前端其它相关文章！