📜  AttributeError: __enter__ in python cde - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:24.780000             🧑  作者: Mango

代码示例1
This is the peice of code which had AttributeError: __enter__
  with sr.Microphone as source:
It got resolved by adding '()' as below:
  with sr.Microphone() as source: