2018年1月10日 星期三

Python: Convert a byte string to a list of integers

Python: Convert a byte string to a list of integers

Python Basic: Exercise-94 with Solution

Write a Python program to convert a byte string to a list of integers.
Sample Solution:-
x = b'AbcDEF'
print()
print(list(x))
print()

=========== RESTART: F:/Python_APSC/py-ex-basic-94.py ============

[65, 98, 99, 68, 69, 70]

>>> 
   

沒有留言:

張貼留言

OPEN DATA AQI 空氣品質監測網 + NODE-RED

OPEN DATA AQI 空氣品質監測網 + NODE-RED  首頁 - 空氣品質監測網  https://airtw.moenv.gov.tw/ https://data.gov.tw/datasets/search?p=1&size=10&s=_score...