while True: try: text = list(input()) # 將輸入的文字轉換成串列 # 依序取出串列中每個字 ( 因為內容計算時會使用 i+1,所以此處使用 -1 ) for i in range(len(text)-1): print(f'{abs(ord(text[i+1]) - ord(text[i]))}',end='') # 計算出密碼 print() except: break
while True: try: text = list(input()) for i in range(len(text)-1): print(f'{abs(ord(text[i+1]) - ord(text[i]))}',end='') print() except: break
so bad bad
do not send the code
so bad bad do not send the code
so bad bad, do not send the code, it's illegal.
so bad bad do not send the code so bad bad, do not send the code, it's illegal.
yes so bad