Convert string to ASCII value python

后端 未结 8 1720
深忆病人
深忆病人 2020-12-07 22:43

How would you convert a string to ASCII values?

For example, \"hi\" would return 104105.

I can individually do ord(\'h\') and ord(\'i\'), but it\'s going to

8条回答
提交回复
热议问题