Query_CoilNum("2024-3-1").main() ^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Query_CoilNum.init() takes 1 positional argument but 2 were given
- 1
- class Pred_Time(Query_Sql):
- def __init__(self):
- super().init()
- 如果没有传入新值 没问题
- 2
- 如果传入新的就会报错
- Query_CoilNum("2024-3-1").main()
- ^^^^^^^^^^^^^^^^^^^^^^^^^
- TypeError: Query_CoilNum.__init__() takes 1 positional argument but 2 were given