Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 19999

Using b'' like f string in python

$
0
0

I have this string s = 'ha\xcc\x81nh'. I want to use as byte, is there anything as b'{s}' like f string f'{s}'


Viewing all articles
Browse latest Browse all 19999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>