跳到主要內容


程式語言概念-常見的檔案型態

程式語言概念
常見的檔案型態

有人會想這個主題有什麼好討論的,可是當真的實際要用的時候,又不是那麼簡單,以下是常見的檔案型態:

  • 二進位檔
  • 文字檔
  • CSV
  • XML
  • JSON
  • html
  • excel
  • word
  • 圖片
  • 音源
  • 影片

二進位檔:

常見副檔名為bin、bi,常用來儲存檔案。

文字檔:

常見副檔名為txt,常用來儲存檔案,常用文字編碼Ascii、utf-8。

CSV

逗號分隔值,副檔名為csv,常用於紀錄序列或集合,用逗號方式分隔資料
如:data1,data2,data3。

XML

可擴展標籤語言,副檔名為xml,來傳送資料。

html

超文件標示語言,副檔名為html,常用在網頁上,為xml的延伸。

Json
Json檔,副檔名為json,常用於資料交換,為xml的延伸,採用C語言習慣。

excel:

excel檔,副檔名xls、xlsx,用於資料統計,微軟的office軟體。

word:

word檔,副檔名doc、docx,用於文本編輯,微軟的office軟體。

圖片

圖片檔,分成向量、點陣兩種,常見種類jpg、png等...,用於儲存圖像。
影片

影片檔,常見種類mp4、avi、wmv,用於儲存影像。

音源

音源檔,常見種類wav,用於儲存音源。

上述檔案類型,只是基本的敘述,詳細的內容需要額外討論,資料量大的檔案類型會有壓縮的問題。


 投影片-slideshare:程式語言概念_變數
 影片-youtube:程式語言蓋面_變數
 程式碼-Github:程式語言概念_變數
下一單元:程式語言概念_資料庫

留言

這個網誌中的熱門文章

語言學習-English-Lights

Song Lyric Title : Lights Singer :Ellie Goulding Album :  Bright Lights Release Date :  2011 I had a way then losing it all on my own I had a heart then but the queen has been overthrown And I'm not sleeping now the dark is too hard to beat And I'm not keeping up the strength I need to push me You show the lights that stop me turn to stone You shine it when I'm alone And so I tell myself that I'll be strong And dreaming when they're gone 'Cause they're calling, calling, calling me home Calling, calling, calling home You show the lights that stop me turn to stone You shine them when I'm alone Noises, I play within my head Touch my own skin and hope they'll still be there And I think back to when my brother and my sister slept In and on my place the only time I feel safe You show the lights that stop me turn to stone You shine it when I'm alone And so I tell myself that I'...

程式語言學習概論(1)

程式語言 介紹

Python-資料庫-mongodb-pymongo

Python 資料庫 mongodb-pymongo 安裝: linux、mac:pip3 install pymongo windows: import pymongo client = pymongo.MongoClient("mongodb://localhost:27017/") db = client['demo_db'] col = db['demo_col'] dict1 = { "name": "ab123ab456g", "day": "1890-04-05" } result = col.insert_one(dict1)  dict2 = [   { "name": "ki", "day": "1666-1-1"},   { "name": "aa", "day": "1222-11-11"},   { "name": "gg-gg", "day": "1333-02-22"},   { "name": "T-T", "day": "1444-03-02"},   { "name": "f-f", "day": "1555-01-01"} ] result = col.insert_many(dict2) result = col.find_one() print(result) results = col.find() for result in col.find(): print(result) results = col.find() query = {'...