• 首頁
  • Python 筆記
  • Laravel

Python

Python 3 – 檔案 – 檔案與目錄的操作

檔案的重要屬性:檔名、路徑、檔案類型 基本的檔案及目錄操作 windows 與 linux 上的路徑分隔符號 ... » read more

0
Read
Kirin written 6 個月 ago
【Python】檢查 Sqlite 中的資料表是否存在

import sqlite3 conn = sqlite3.connect("test.db&quo... » read more

0
Read
Kirin written 6 個月 ago
BOM 的去除方式:分別使用 vim, Python, 及 bash

BOM 是 Byte Order Mark 的縮寫,中文譯為「位元組順序編號」。 在 Windows 系統中,... » read more

0
Read
Kirin written 7 個月 ago
【Python】編碼問題:UnicodeEncodeError: ‘ascii’ codec can’t encode characters …

我在 windows 系統中寫了一個解析 xml 的小程式,測試沒問題後,上傳 Hostgator 的主機,執... » read more

0
Read
Kirin written 2 年 ago
【Python】在 CentOS 7 上安裝 Python3

CentOS 7 預設安裝的 Python 是 Python2 ,也有不少服務和程式是需要用到 Python2... » read more

0
Read
Kirin written 3 年 ago
Python – 網站擷取 – 101 – 簡單的程式範例

套件安裝 pip install beautifulsoup4 程式碼範例 先來看一個簡單的網站擷取程式,大致... » read more

0
Read
Kirin written 3 年 ago
Python – csv – 中文資料的讀取和寫入

一、寫入 csv 檔案 1、以一般方式寫入 import csv f = open('test.cs... » read more

0
Read
Kirin written 3 年 ago
【Python】PEP (Python Enhancement Protocol – Python 增強協議) 簡介

PEP 文件的目的 1、為了增強 Python 語言的實作細節而提出的建議,這佔了絕大多數。 2、針對『什麼該... » read more

0
Read
Kirin written 3 年 ago
Python – decimal 模組教學 – 四捨五入的正確作法

簡介 一個 python 的 float 是二進位的浮點數(binary floation-point num... » read more

0
Read
Kirin written 3 年 ago
【Python】四捨五入

「四捨五入」是約整 (Rounding)的一種方式,在 python 的內建函數中,有一個 round 函數來... » read more

0
Read
Kirin written 3 年 ago
Page navigation
  • 1 / 3
  • Current Page 1
  • Page 2
  • Next ›
  • Last »
  • 首頁
  • Python 筆記
  • Laravel
Copyright © 2022 Kirin. All rights reserved.