1.條件結構
def main():
temperature = float(input('please input the temperature :'))
if temperature > 50 :
print('High')
else:
print('Low')
if temperature > 50 and temperature < 100:
print('1')
2.異常處理
try:
<body>
except <ErrorType>:
<handler>
3.循環結構
@ for循環
for i in range(n):
@ while循環
while <condition>:
<body>