-4

ディクショナリ 'dict1' の変数 'a' と 'b' の場合、後で 'dict1' で指定されたキーを使用して変数 'a' を呼び出して値を割り当てることはできますか??

 a=""
 b=""
 dict1= {0:a,1:b}

    dict1[0] = "Hai"    #assign a value to the variable using the key

    print(a)            #later call the variable``` 
4

4 に答える 4