Quantcast
Viewing all articles
Browse latest Browse all 1234

Python • Re: Import data and passing a variable into binary

I am unsure what you mean by "have it pass as binary."

The code line

Code:

server = b'secrets.myserver'
retrieves the string defined by myserver and then converts that to a binary string.

If that is your intent, then the answer to your question is yes.

Statistics: Posted by MrYsLab — Sun Feb 09, 2025 8:15 pm



Viewing all articles
Browse latest Browse all 1234

Trending Articles