Re: [問題] 真值轉成數值
你可以查一下
struct.unpack 的用法。
※ 引述《buganini (霸格尼尼)》之銘言:
: 我用Pymedia讀一個wav檔
: readframes(1)
: 會傳回4bytes的data(應該是一個int吧)
: 我想把他轉成真正的int
: 也就是可以拿來做數學運算
: 請問要怎麼轉啊?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.59.19.17
推
03/11 03:07, , 1F
03/11 03:07, 1F
推
03/11 04:23, , 2F
03/11 04:23, 2F
→
03/11 04:24, , 3F
03/11 04:24, 3F
推
03/11 04:29, , 4F
03/11 04:29, 4F
推
03/11 11:38, , 5F
03/11 11:38, 5F
噓
03/11 11:41, , 6F
03/11 11:41, 6F
推
03/11 11:44, , 7F
03/11 11:44, 7F
推
03/11 16:02, , 8F
03/11 16:02, 8F
→
03/11 16:03, , 9F
03/11 16:03, 9F
推
03/11 16:07, , 10F
03/11 16:07, 10F
→
03/11 16:08, , 11F
03/11 16:08, 11F
推
03/11 16:51, , 12F
03/11 16:51, 12F
→
03/11 16:52, , 13F
03/11 16:52, 13F
推
03/11 18:13, , 14F
03/11 18:13, 14F
→
03/11 18:15, , 15F
03/11 18:15, 15F
推
03/11 19:50, , 16F
03/11 19:50, 16F
推
03/11 19:56, , 17F
03/11 19:56, 17F
推
03/11 20:21, , 18F
03/11 20:21, 18F
推
03/11 20:24, , 19F
03/11 20:24, 19F
→
03/11 20:25, , 20F
03/11 20:25, 20F
推
03/14 04:40, , 21F
03/14 04:40, 21F
→
03/14 04:41, , 22F
03/14 04:41, 22F
→
03/16 12:57, , 23F
03/16 12:57, 23F
討論串 (同標題文章)
Python 近期熱門文章
PTT數位生活區 即時熱門文章