#30715: 用字典寫寫看


fruitbear1980@gmail.com (大叔學程式)

School : No School
ID : 148911
IP address : [219.85.168.77]
Last Login :
2022-06-11 16:32:01
d670. 10921 - Find the Telephone -- UVa10921 | From: [219.84.233.12] | Post Date : 2022-06-08 16:52

看到ABC :1  這樣的資料想到python 的字典

有鍵A 有值 1

建立好字典後

再去比對

當電話字串等於鍵時  轉換成值再寫入新字串

 
ZeroJudge Forum