码迷,mamicode.com
首页 >  
搜索关键字:zen coding    ( 13130个结果
python 读写文件程序
主要最近学习python,两个练习的小例子,也是看书上写的,非常简单,感觉有点用**********写文件**********#_*_coding:UTF-8_*_importosls=os.linesepwhileTrue:fname=raw_input(‘输入文件名:‘)ifos.path.exists(fname):print"ERROR:‘%s‘alreadyexists"%fnameelse:breakall=[]wh..
分类:编程语言   时间:2014-12-24 06:31:17    阅读次数:134
Apache commons codec 之language
Apache commons codec的language是一个功能比较强大的包,主要是用在对各种语言的处理上,当然,这个包对汉字的支持很糟糕。这一块的内容,在网上非常少,只能自己写一些挺肤浅的代码,以后如果有机会接触,再完善。 我们先学习下编码的范例。   Examples of Soundex Coding      Name              ...
分类:Web程序   时间:2014-12-23 15:39:54    阅读次数:189
python学习笔记三:函数
一、定义def functionName([arg1,arg2,...]): code二、示例#!/usr/bin/python#coding:utf8#coding=utf8#encoding:utf8#encoding=utf8def fun(x=3,y='甜'): print '生...
分类:编程语言   时间:2014-12-23 10:25:33    阅读次数:178
Python 入门学习 -----变量及基础类型p一天
Python的变量和数据类型    1 、python的变量是不需要事先定义数据类型的,可以动态的改变    2、 Python当中一切皆对象,变量也是一个对象,有自己的属性和方法       我们可以通过        来查看变量的类型:变量名.__class__        调用变量的方法:变量名.方法() #!/bin/env python #coding:utf-8 #type 打印出...
分类:编程语言   时间:2014-12-23 00:20:02    阅读次数:169
iOS KVC & KVO
iOS KVC & KVOKey Value CodingKey Value Coding是cocoa的一个标准组成部分,它能让我们可以通过name(key)的方式访问property, 不必调用明确的property accssor, 如我们有个property叫做foo, 我们可以foo直接访问...
分类:移动开发   时间:2014-12-22 21:11:32    阅读次数:217
selenium +python 如何得到弹出窗口
捕获或者说定位弹出窗口的关键在于获得弹出窗口的句柄。我还是喜欢通过例子来说明:#-*-coding=utf-8from selenium import webdriverimport unittestclass login(unittest.TestCase): def setUp(self): ....
分类:编程语言   时间:2014-12-22 12:35:04    阅读次数:699
[转载]Emmet使用手册
转载地址:http://www.w3cplus.com/tools/emmet-cheat-sheet.html 介绍 Emmet (前身为 Zen Coding) 是一个能大幅度提高前端开发效率的一个工具: 基本上,大多数的文本编辑器都会允许你存储和重用一些代码块,我们称之为“片段...
分类:其他好文   时间:2014-12-22 09:19:35    阅读次数:422
Python中几种数据类型list, tuple,dict,set的使用演示
还是直接上代码,看着代码运行,看函数介绍# coding=utf-8 # 1 list-列表 的用法students = [1,2,3] a = 5classmates = [students*2,[1,1,1,1],[1,1,1,1]]#list的乘法是数组的线性扩大classmates.app....
分类:编程语言   时间:2014-12-21 17:56:22    阅读次数:206
[Python]爬取糗事百科
# coding=utf-8 import urllib2 import urllib import re class QiuShi: def _init_(self): self.page = 1 # 从网页获取糗事 def GetQiuShis(self,page): #网址 url = "http://www.qiushibaike.com/...
分类:编程语言   时间:2014-12-21 15:22:50    阅读次数:279
某站点登录接口破解脚本
#coding:utf-8, import sys,urllib,urllib2,cookielib,time; url1 = "http://www.xxx.com/mobile/xxx-login.html"; url2 = "http://www.xxx.com/mobile/xxx-post...
分类:其他好文   时间:2014-12-20 19:40:16    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!