首页 软件开发 代码片段 ( Page 652 )

代码片段 8064

#Objective-C
关于AppDelegate里面的那些函数方法

//启动基本完成程序准备开始运行. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithO…

2014-11-19 687

#SQL
SQL取正数的小数

select 99.99-floor(99.99)

sql
2014-11-19 712

#SQL
oracle decode 函数实现行转列

----创建测试表 create table student_score( name varchar2(20), subject varchar2(20), score numbe…

sql
2014-11-19 628

#Shell
nginx qps 监控

1 #/bin/bash 2 3 #nginx_status_url 手动配置项 4 NGINX_STATUS_URL="http://127.0.0.1/nginx_status…

2014-11-19 677

#Python
使用C++扩展python

// demo.cpp : 定义控制台应用程序的入口点。 // #include "Python.h" int add(int a, int b) { return (a+b); …

2014-11-19 690

#Python
匹配IP和匹配域名

class JianKong(): '''查询IDC信息,封ip和过白名单''' def __init__(self): pass @classmethod def ip_veri…

2014-11-19 362

#Ruby
约数求和

def divisors(n) sumOfDivisors=0 i=1 while i<n if n%i==0 divisor=i sumOfDivisors=sumOfDi…

2014-11-18 836

#Python
用番号搜索磁力连接

#!/usr/bin/env python #coding=utf8 import sys import urllib2 import re def query_magnet(ke…

2014-11-18 1,007

#Python
使用map和reduce实现阶乘求和

""" 使用map和reduce实现阶乘求和 x!+(x-1)!+(x-2)!+...+1! x! = x * (x-1) * (x-2) * ... * 1 0! = 1 """…

2014-11-18 805

#Python
python编程思路

python北京周末培训班 https://github.com/pythonpeixun/article/blob/master/beijing_weekend.md pytho…

2014-11-18 818