#13085: python 的 字元 與 ascii 碼轉換


weiye (weiye)


chr( ascii碼) 可取得該字元,

ord( 字元) 可取得 ascii 碼。

 

列印時,善用 print 的參數 sep 及 end,

例如 print(..., ..., ..., ..., sep="", end=""),

可以調整列印時,無間隔字元 且 印後不換行。