1.类,对象和方法的概念类是对象的独特表现,每个对象包含各自的私有信息,方法是改变和提供访问的这些数据的手段。因此,objective-c 采用特定的语法对类和实例应用方法:[classOrInstance method];或者理解为消息的传递和接受[receiver message];实例如下:1...
分类:
移动开发 时间:
2015-12-06 19:06:41
阅读次数:
162
纯文本:#!/usr/bin/env python3#coding: utf-8import smtplibfrom email.mime.text import MIMETextfrom email.header import Headersender = '***' receiver = ...
分类:
编程语言 时间:
2015-12-04 10:38:21
阅读次数:
153
#coding:utf-8importsmtplibfromemail.mime.multipartimportMIMEMultipartfromemail.mime.textimportMIMETextfromemail.mime.p_w_picpathimportMIMEImagesender=‘15958153817@139.com‘receiver=‘15958153817@139.com‘smtpserver=‘smtp.139.com‘username=‘15958153817@139.com‘p..
分类:
编程语言 时间:
2015-11-23 14:53:09
阅读次数:
129
原文: C#中使用SendMessage进行进程通信的实例 1 新建解决方案SendMessageSecondExample 在解决方案下面新建两个项目:Sender和Receiver,两者的输出类型均为“Windows 应用程序”。整个程序的结构如下图所示。 2 实现项目Sender Sender...
本文旨在探讨动态注册与静态注册receiver的区别,哪种注册方式在接收速度上更具优势.
分类:
其他好文 时间:
2015-11-20 23:04:28
阅读次数:
251
Sliding window is an interesting concept. In terms of TCP, receiver’s window represents the amount of data that the receiver is willing to accept. In this article, we will cover TCP sliding windo...
可以在代码文件中声明一个receiver,也可以在manifest中声明一个,前者中的receiver只有在该activity launch起来以后才会监听其所感兴趣的事件,而如果在androidManifext.xml中声明的话,就不受限制,随时可以监听感兴趣的事件。 1. 首先谈谈在androi...
分类:
移动开发 时间:
2015-11-06 10:51:49
阅读次数:
201
Running a Loop 1,run: Puts the receiver into a permanent loop, during which time it processes data from all attached input sources. Discussion If no input sources or timers are attached to the run ...
分类:
其他好文 时间:
2015-10-27 13:39:21
阅读次数:
255
1、connect[cpp]view plaincopyconnect(sender,SIGNAL(signal()),receiver,SLOT(slot()));这里用到了两个宏:SIGNAL() 和SLOT();通过connect声明可以知道这两个宏最后倒是得到一个const char*类型。...
分类:
其他好文 时间:
2015-10-16 20:36:03
阅读次数:
265
能给CGRect发消息么? 答案是不能,只能给Objective-C对象发消息,CGRect是结构体,所以不行!明确几个概念 receiver(消息接收方):指针,指向执行方法的对象 selector(选择器) ? ? ?:需要执行方法的方法...
分类:
其他好文 时间:
2015-10-16 01:12:16
阅读次数:
155