python 字符串轉秒 完成多少小時轉成多少秒

在用python抓取網頁內容,獲得相似:2:30:10的時間長度,須要轉成秒數python ''' 由字符串22:10:3獲得對應的移數 支持1:1:1,1:1,1,三種形式 stime="10:30" sRetrun=str2sec(stime) print sRetrun>631 print sRetrun ''' def str2sec(paraStringTime):     arr=pa
相關文章
相關標籤/搜索