実行時に出力を解析し、それからの時間を特定の値と比較して差を出力するプログラムが1つありますが、私のやり方では機能しません:
a = 'Time Taken for Response: 31 msec'
time_out = 75
if a.split()[4] > time_out:
print "time taken is more than given conditions"
print a.split()[4]
出力は次のとおりです。
time taken is more than given conditions
31
なぜプログラムがループ自体に入るのか理解できません31 < 75
手がかりやガイダンス???