Is there a formatted byte string literal in Python 3.6+?

前端 未结 5 1292
走了就别回头了
走了就别回头了 2020-12-17 07:29

I\'m looking for a formatted byte string literal. Specifically, something equivalent to

name = \"Hello\"
bytes(f\"Some format string {name}\")
5条回答
提交回复
热议问题