-如果说我要运行一个程序 但是字典是不定的 任意输入 该怎么创建呀
参考一下这个
val_dict={} k = input("字典键") v = input("字典值") val_dict[k] = v print(val_dict)
在大括号里打个冒号
dit={:}