![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
二十三年弃置身
激光雷达biubiubiu~
展开
-
Python3学习笔记【第一个脚本(文件备份)】
import osimport time# 1. 需要备份的文件与目录将被指定在一个列表中。source = 'E:\\Python\\'#2. 备份文件必须存储在一个主备份目录中target_dir='E:\\b'# 3. 备份文件将打包压缩成 zip 文件。# 4. zip 压缩文件的文件名由当前日期与时间构成。target=target_dir+os.sep+time.st...原创 2019-04-25 21:05:49 · 139 阅读 · 0 评论 -
Python3学习笔记【类与对象】
按照简明教程前面都没有问题,唯独有一段有问题,例11.4#!/usr/bin/python# Filename: objvar.pyclass Person:'''Represents a person.'''population = 0def __init__(self, name):'''Initializes the person's data.'''self.name = ...原创 2019-05-16 10:27:17 · 119 阅读 · 0 评论 -
Python3学习笔记【机器学习】【k-近邻算法】【约会网站配对算法】
# -*- coding: utf-8 -*-"""Created on Wed May 22 10:43:50 2019@author: 激光雷达"""from numpy import *import operator'''Part 1 '''def creatDataSet(): group = array([[1.0,1.1],[1.0,1.0],[0,0]...翻译 2019-05-25 11:03:13 · 135 阅读 · 0 评论 -
Python3学习笔记【机器学习】【k-近邻算法】【手写识别系统】
import kNN # dating program file in previous blogfrom numpy import *import operatorimport osdef img2vector(filename): # Make the 32x32 txt file to a 1024 list returnVector = zeros((1,1024...翻译 2019-05-27 21:26:17 · 147 阅读 · 0 评论