The official raywenderlich.com Objective-C style guide.This style guide outlines the coding conventions for raywenderlich.com.IntroductionThe reason w...
分类:
其他好文 时间:
2015-06-04 15:03:38
阅读次数:
229
几条面向对象课上介绍的高质量代码写作原则: 1. Don't Repeat Yourself不要重复你自己,重复代码,类似代码都是问题的隐患。程序员为了能够节省时间,喜欢复制现成的代码,稍加修改制作自己的调用的函数(方法),这种做法将会把原有的问题复制一份,修改的时候也要修改两份。重复代码的问...
分类:
其他好文 时间:
2015-06-03 19:20:09
阅读次数:
73
2015-05-26 628 Code-Tuning Techniques ——Even though a particular technique generally represents poor coding practice, specific circumstances might ma....
分类:
其他好文 时间:
2015-06-03 19:05:45
阅读次数:
119
#coding=utf-8
importwx
classStaticTextFrame(wx.Frame):
def__init__(self):
wx.Frame.__init__(self,None,-1,‘StaticTextExample‘,size=(400,300))
panel=wx.Panel(self,-1)
#静态文本前景色和背景色的静态文本
wx.StaticText(panel,-1,"Thisisanexampleofstatictext",(100,..
分类:
编程语言 时间:
2015-06-03 13:54:20
阅读次数:
129
Well, there is a nice and succinct solution to this problem using math skills. However, personally I guess it would be safer to use DP in a coding int...
分类:
其他好文 时间:
2015-06-03 00:42:00
阅读次数:
157
基本的代码规范要遵循apple官方文档的要求(传送门:Introduction to Coding Guidelines for Cocoa),以下是我在多年工作中的经验所得。代码布局格式化代码指针“*”号的位置
分类:
其他好文 时间:
2015-06-02 21:43:02
阅读次数:
114
发现是因为Python在默认状态下不支持源文件中的编码所致。解决方案有如下三种:一、在文件头部添加如下注释码:# coding= 例如,可添加# coding=utf-8二、在文件头部添加如下两行注释码:#!/usr/bin/python# -*- coding: -*- 例如,可添加# -*- ....
分类:
编程语言 时间:
2015-06-02 19:36:23
阅读次数:
142
http://wrox.cn/article/1004030/# -*- coding: utf-8 -*-"""Created on Tue Jun 02 16:26:52 2015@author: dapenghuang"""from _winreg import *# tweak as nec...
分类:
编程语言 时间:
2015-06-02 17:37:57
阅读次数:
158
# -*- coding: utf-8 -*-stock1={ 'stockName':"沈阳机床", 'stockCode':"000410", 'averagePrice_yesterday':34.08, 'averagePrice_to...
分类:
编程语言 时间:
2015-06-02 17:37:35
阅读次数:
135