Русская версия
ReferencableVariable
This class allows you to operate variables as well, as you pass them by a pointer.
Usage:
>>> a = ReferencableVariable(4) >>> a.get() 4 >>> b = a >>> b.set(128) >>> a.get() 128 >>> c = b >>> c.set(64) >>> a.get() 64
class common.ReferencableVariable(value)
Parameters:
value
ReferencableVariable.get()
An accessor to get the stored value.
ReferencableVariable.set(value)
An accessor to set the stored value with the value.
ReferencableVariable.value
A value property is used as an accessor to get and to set the stored value.
>>> refvar.value = 4 >>> refvar.value 4 >>> refvar.value = 8 >>> refvar.value 8
There was an error while loading. Please reload this page.
trackduino
executor
audiotrack
display
led
motor
servo
sound
sensor
bt
button
color
encoder
flame
gyro
ir
light
magnetic
mic
shock
temperature
tilt
ultrasonic
common
pins
Использование REPL
REPL