为什么这个第一个pprint无法实现?
https://imgtu.com/i/g3MvPf 发代码 昨非 发表于 2021-5-7 15:48发代码
import pprint
n ='sdasdsdasda'
count = {}
for b in n:
count.setdefault(b, 0)
count = count+1
pprint.pprint(count)
import pprint
a ='edfg rtfgh swerdfg asdfv'
count = {}
for i in a:
count.setdefault(i, 0 )
count = count+1
pprint.pprint(count)
页:
[1]