給自己的學習記錄

2016年7月1日 星期五

把 list 的資料寫入到 file


bytesToWrite=[125,3,255,0,101]
newfile=open("hello.bin",'wb')
newfile.write(bytes(bytesToWrite))
newfile.close()
張貼者: yzstone 於 凌晨1:45
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest
標籤: python

沒有留言:

張貼留言

較新的文章 較舊的文章 首頁
訂閱: 張貼留言 (Atom)

標籤

  • 7z
  • 8051
  • atmel
  • AVR
  • batch file
  • C language
  • C#
  • LibreOffice
  • MCU
  • MSP430
  • programming
  • python
  • raspberry pi
  • TI
  • tip
  • uart
  • windows
  • WPF

關於我自己

yzstone
檢視我的完整簡介

網誌存檔

  • ►  2017 (1)
    • ►  2月 (1)
  • ▼  2016 (23)
    • ►  11月 (4)
    • ►  10月 (1)
    • ►  8月 (1)
    • ▼  7月 (5)
      • 在 Batch File 中使用 findstr 比對 log 檔中的訊息
      • Batch file 指令太長如何換行
      • python 中使用 enum
      • python 如何安裝 .whl 檔
      • 把 list 的資料寫入到 file
    • ►  6月 (2)
    • ►  5月 (2)
    • ►  4月 (1)
    • ►  3月 (4)
    • ►  2月 (2)
    • ►  1月 (1)
  • ►  2015 (6)
    • ►  11月 (2)
    • ►  10月 (1)
    • ►  9月 (3)
簡單主題. 技術提供:Blogger.