mirror of
https://github.com/ejeanboris/MGL849.git
synced 2025-04-29 20:22:37 +00:00
13 lines
285 B
Python
13 lines
285 B
Python
def desired_input(mutex,T_in,fileno):
|
|
sys.stdin = os.fdopen(fileno)
|
|
while(True):
|
|
mutex.acquire()
|
|
try:
|
|
s = input('Please enter the desired Temperature: ')
|
|
except:
|
|
s = 0
|
|
T_in.Value = float(s)
|
|
T_in.value = float(s)
|
|
print T_in.Value
|
|
print T_in.value
|
|
mutex.release() |