2025年5月13日 星期二

text.encode

 #_*_coding=big5_*_


while True:

try:

text = input()

hex_output = ''.join([f'{byte:02x}' for byte in text.encode('big5')])

hex_output = hex_output.upper()

print(hex_output)

except:

break

沒有留言:

張貼留言