码迷,mamicode.com
首页 >  
搜索关键字:coding    ( 12955个结果
环信SDK与Apple Watch的结合(2)
这一篇主要是介绍怎么写apple watch上的相关页面。需要在工程中的“EMWatchOCDemo WatchKit App”中进行操作,该文件夹的结构如图WatchKit几乎不允许直接coding页面,只能在storyboard上拖来拖去,对于我这种习惯直接coding页面的人来说,真真是极痛苦...
分类:移动开发   时间:2015-04-08 19:26:42    阅读次数:161
python 计算出 素数 奇数 和偶数脚本
#!/usr/bin/envpython#-*-coding:utf8-*-#这是一个python写的素数脚本,只是计算100以内的素数file=open(‘test.txt‘,‘w+‘)forninrange(100):ifn%2==1:print>>file,nfile.close()#!/usr/bin/envpython#-*-coding:utf8-*-#这是偶数python脚本,100以内的forxinrange(101):if..
分类:编程语言   时间:2015-04-08 16:48:36    阅读次数:241
编写登录接口
#!/usr/bin/python#_*_coding:utf-8_*_importsysretry_limit=3retry_count=0account_file=‘account.txt‘lock_file=‘account_lock.txt‘whileretry_count<retry_limit:#只要重试不超过三次就不断循环username=raw_input(‘\033[31;1mUsername:\033[0m‘)lock_check=file(lock_fi..
分类:其他好文   时间:2015-04-08 16:46:03    阅读次数:168
getstu
#coding: utf-8#title..href...import urllib.requestimport timeurl=['']*230page=15564j=0while j<230: url[j]='http://www.chinacampus.org/show.php?cont...
分类:其他好文   时间:2015-04-08 01:07:04    阅读次数:129
getjob
[op@TIM getpage]$ cat job.py #coding: utf-8#title..href...import urllib.requestimport timeurl=['']*30page=83909j=0while j<30: url[j]='http://job.csdn....
分类:其他好文   时间:2015-04-07 19:15:02    阅读次数:93
HihoCoder - Floyd算法
Floyd-Warshall算法其实是比较容易理解也比较容易coding的DP... 不说了,上代码:#include #include #include #include #include #include #include #include #include using namespace st...
分类:编程语言   时间:2015-04-07 15:09:24    阅读次数:133
爬虫,抓取网页图片
1 #!usr/bin/env python 2 #-*- coding:utf-8 -*- 3 import urllib 4 import re 5 6 def getHtml(url): 7 page = urllib.urlopen(url) 8 html = page....
分类:Web程序   时间:2015-04-07 13:25:57    阅读次数:145
[Leetcode][Python]56: Merge Intervals
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'56: Merge Intervalshttps://oj.leetcode.com/problems/merge-intervals/Given a collection of ...
分类:编程语言   时间:2015-04-07 07:08:17    阅读次数:158
[Leetcode][Python]55: Jump Game
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'55: Jump Gamehttps://leetcode.com/problems/jump-game/Given an array of non-negative intege...
分类:编程语言   时间:2015-04-07 07:06:39    阅读次数:232
isinstance()和__name__
1 # coding: utf-8 2 3 def displayNumType(num): 4 print num, 'is', 5 if isinstance(num, (int, long, float, complex)): # 如果变量num的值为元组(int...
分类:其他好文   时间:2015-04-06 15:29:18    阅读次数:223
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!