简体   繁体   中英

Is it possible to 'stream' a variable in python?

I don't know technically how exactly works file handling and streaming. I wonder is there anyway to stream a variable like it is being read by open() but without using open() and not from a file.

Thanks in advance...

You want to read this .

Not from a file? Maybe using a StringIO (see the same link).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM