trId=6815744?ueId=851968?crnti=21733?hoType=0?numOfSrb=1?numOfDrb=0?poolId=0
cellId?=0xd,?ueId?=?0xd0002,?ueIndex?=?0x10,?crnti?=?0x5567"""
#先格式處理,將'=',換行符和'?'統壹使用逗號分隔
a=a.replace("?",",").replace("=",?",").replace("\n",",")
#過濾無效的值
b?=?filter(None,a.split(","))
#轉換成字典
d?=?dict(zip(b[0::2],?b[1::2]))
d就是妳要的字典,不過妳這給出的可是有重復的鍵呢,比如ueId,它就是重復的,重復的取最後壹次覆蓋的值,