Jun-08-2021, 10:43 PM
i can make a bytes string:
i can make an f-string:
now i want to make a bytes f-string. all of the characters have values below 256. do i have to do it like this?
it doesn't seem to work as well if foo is bytes:
1 |
bs = b 'foobar' |
1 2 |
foo = 'hello' fs = f '{foo}bar' |
1 2 3 |
foo = 'hello' fs = f '{foo}bar' bfs = bytes( ord (x) for x in fs) |
1 2 3 |
foo = b 'hello' fs = f '{foo}bar' bfs = bytes( ord (x) for x in fs) |
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.