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]

>>> 
   

沒有留言:

張貼留言

2024產專班 作業2 (純模擬)

2024產專班 作業2  (純模擬) 1) LED ON,OFF,TIMER,FLASH 模擬 (switch 控制) 2)RFID卡號模擬 (buttom  模擬RFID UID(不從ESP32) Node-Red 程式 [{"id":"d8886...