我收到 ValueError: Non-alphanum char in element with leading alpha: an:2d:re:sd:23:da for input of x = an:2d:re:sd:23:da 和任何 y 值< /p>
db = firestore.client()
x = input("Enter MAC Address of WiFi Network")
y = input("Enter Wifi Name of Location")
docRef = db.collection(u'MAC-Addresses').document(u'MAC')
docRef.update({ x : y })
我尝试使用 field_path
docRef.update({ field_path(x) : field_path(y) })
但得到 NameError: name 'field_path' 未定义。
我正在使用 python3 。 如何解决这个问题?