自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Clarence

针对有一定Objective-C基础或者其他语言基础的人群(实际上耐心看边看边敲代码,零基础也是可以看懂的)

  • 博客(19)
  • 资源 (9)
  • 收藏
  • 关注

原创 linux ubuntu 软件安装

DPKG软件安装Linux 系统中,软件通常以源代码或者预编译包的形式提供。 软件源代码需要编译为二进制的机器代码才能够使用,安装比较耗时,不过您可以自行调节编译选项,决 定需要的功能或组件,或者针对硬件平台作一些优化。 预编译的软件包,通常是由软件的发布者进行编译,您只要将软件拷贝到系统中就可以了。考虑到预编译 软件包的适用性, 预编译软件包通常不会针对某种硬件平台优化。 它所包含的

2017-08-04 15:40:53 286

原创 Linux ubuntu 文件类型 权限

文件类型Linux 系统主要根据文件头信息来判断文件类型,扩展名并非决定因素。 现在使用 ls -l 命令,查看详细信息格式的文件列表,您将会看到如下内容: total 5drwxr-x--- 4 user group 4096 Mar 10 00:37 filenamedrwxr-xr-x 21 user group 4096 Mar 10 20:16 文件名-rw-------

2017-08-04 15:39:59 559

原创 Python 天气预报

# !/usr/bin/env python# coding=utf-8import httplibimport jsonhttpClient = Nonetry: httpClient = httplib.HTTPConnection('api.map.baidu.com', 80, timeout=30) httpClient.request('GET',

2017-08-04 10:33:37 571

原创 Python 图形编辑 Tkinter Button (二)

#coding=utf-8'''5.Button 的宽度与高度'''# width: 宽度# heigth: 高度from Tkinter import *root = Tk()b1 = Button(root, text = '30X1', width = 30, height = 2

2017-08-03 15:34:30 507

原创 Python 图形Tkinter Button

#coding=utf-8'''第一个button 例子'''#command:指定时间处理函数from Tkinter import *#定义Button的时间处理函数def helloButton(): print 'hello Button'root = Tk()#通过 command 属性来指定Button的事件处理函数Button(root, te

2017-08-03 15:12:32 805

原创 Python 图形界面Tkinter Label 详解

Python 图像界面 Tkinter (非 tkinter 注意大小写)

2017-08-03 14:38:11 12513 5

原创 Python 创建一个 UDP 服务

由于 UDP 服务器不是面向连接的,所以不用像 TCP 服务器那样做那么多设置工作。事实上,并 不用设置什么东西,直接等待进来的连接就好了。ss = socket() #创建一个服务器套接字ss.bind() #绑定服务器套接字inf_loop: #服务器无限循环cs = ss.recvfrom()/ss.sendto() # 对话(接收与发送)ss.close() # 关闭服

2017-08-03 09:03:03 881

原创 Python Threading 模块

#coding=utf-8#使用 threading模块#!/usr/bin/env/pythonimport threadingfrom time import sleep,ctimeloops = [4,2]def loop(nloop,nsec): print 'start loop',nloop,'at',ctime() sleep(nsec) pr

2017-08-03 08:56:41 218

原创 Python 服务端与客户端 TCP连接

#server.py#coding=utf-8from socket import *from time import ctimeHOST = ''PORT = 10086BUFSIZE = 1024ADDR = (HOST,PORT)tcpSerSock = socket(AF_INET,SOCK_STREAM)tcpSerSock.bind(ADDR)tcpSer

2017-08-02 14:35:55 767

原创 Python 爬虫 安装pip

sudo easy_install pipbrew install pippip install -U pip//识别网站所用技术

2017-08-01 13:29:16 527

原创 Python 网络爬虫 初试

//利用Python 抓取指定页面import urllib.requesturl = "http://www.baidu.com"data = urllib.request.urlopen(url).read()data = data.decode('UTF-8')print(data)//简单看下openurl 的返回值 有哪些属性import urllib

2017-08-01 13:27:50 471

原创 Python 常用库

python 常用库我要纠错阅读(4369)收藏赞(2)分享新版预览GUI 图形界面1.wxpython Python下的GUI编程框架,与MFC的架构相似 下载地址:http://wxpython.org/download.php2. PyQt 用于Python的QT开发库 下载地址:http://www.riverbankcomputing.com/software/p

2017-08-01 11:53:27 347

原创 Python 线程同步 线程优先级

线程同步如果多个线程共同对某个数据修改,则可能出现不可预料的结果,为了保证数据的正确性,需要对多个线程进行同步。使用Thread对象的Lock和Rlock可以实现简单的线程同步,这两个对象都有acquire方法和release方法,对于那些需要每次只允许一个线程操作的数据,可以将其操作放到acquire和release方法之间。如下:多线程的优势在于可以同时运行多个任务(至少感觉起来是这样)

2017-08-01 11:52:34 3531

原创 Python 使用threading 模块创建线程

#coding=utf-8#!/usr/bin/pythonimport threadingimport timeexitFlag = 0class myThread (threading.Thread): #继承父类threading.Thread def __init__(self, threadID, name, counter): threadi

2017-08-01 11:51:43 330

原创 Python 多线程 thread

#!/usr/bin/python# -*- coding: UTF-8 -*-import threadimport time# 为线程定义一个函数def print_time( threadName, delay): count = 0 while count < 5: time.sleep(delay) count += 1

2017-08-01 11:51:11 179

原创 Python 发送邮件

以下是一个使用Python发送邮件简单的实例:#!/usr/bin/pythonimport smtplibsender = '[email protected]'receivers = ['[email protected]']message = """From: From Person To: To Person Subject: SMTP e-mail testThi

2017-08-01 11:49:56 281

原创 Python 第一个CGI程序

print "Content-type:text/html\r\n\r\n"print ''print ''print 'Hello Word - First CGI Program'print ''print ''print 'Hello Word! This is my first CGI program'print ''print ''

2017-08-01 11:48:24 328

原创 Python 正则表达式

import reline = 'Cats are smarter than dogs'matchobj = re.match(r'(.*) are (.*?) .*',line,re.M|re.I)if matchobj: print('match.group() : ',matchobj.group()) print('match.group(1) : ', mat

2017-08-01 11:47:39 202

原创 Python 对象

class Employee: empCount = 0 def __init__(self,name,salary): self.name = name self.salary = salary Employee.empCount += 1 def displayCount(self): print('to

2017-08-01 11:46:38 210

justswap中文文档.pdf

justswap中文文档

2021-03-02

ios真机调试包,真机支持,13.2

ios真机调试包,真机支持,13.2 xcode 10 , ios 13 ios真机调试包,真机支持,13.2 xcode 10 , ios 13

2019-11-06

Python学习手册2.x+3.x

Python 学习手册, 入门基础, 经典实例, 实践, Python基础

2018-08-19

Tensorflow深度学习框架实战

Tensorflow深度学习框架实战,深度学习,机器学习,神经网络

2018-08-19

Python机器学习经典实例

Python机器学习经典实例, 实践, 人工智能, scrapy,tensorflow

2018-08-18

Python机器学习实践指南

Python机器学习实践指南,人工智能, 神经网络, tensorflow,scrapy

2018-08-18

Python之tkinter中文教程,图形界面

Python之tkinter中文教程,图形界面, Python进阶,Python爬虫基础

2018-08-14

Python深度学习-机器学习-神经网络-深度模型-文字版(非扫描版)

Python深度学习-机器学习-神经网络-深度模型-文字版(非扫描版)

2018-08-13

Python之Tkinter中文教程

Python图形编程Tkinter

2017-08-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除