mirror of
https://github.com/ejeanboris/MGL849.git
synced 2025-09-15 12:51:33 +00:00
code finished
This commit is contained in:
13
FullPythonCode/else.py
Normal file
13
FullPythonCode/else.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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()
|
Reference in New Issue
Block a user