此代码打印值为:
['38']
['25']
['57']
['61']
['73']
等等...如何使它返回值作为整数?
像这样:
38
25
57
61
73
import BlynkLib
# Initialize Blynk
blynk = BlynkLib.Blynk('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
# Register Virtual Pins
@blynk.VIRTUAL_WRITE(1)
def my_write_handler(value):
#print('Current V1 value: {}'.format(value))
print(value)
while True:
blynk.run()
谢谢