具有前导 alpha 的元素中的非字母字符

时间:2021-04-27 21:15:49

标签: python-3.x firebase google-cloud-firestore

我收到 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 。 如何解决这个问题?

0 个答案:

没有答案