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

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 17011

Latest Images

Trending Articles



Latest Images

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