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

代码片段 8064

#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

#Python
统计文件中去重后的uuid个数

import re pattern=re.compile(r'&uuid=.*&') uuidset=set() with open('request.log.20…

2014-11-19 366

#Python
指定文件备份工具

#!/usr/bin/python """ 2015.07.07 store all the specified kind of files to the DEST Edit by…

2014-11-19 1,004

#Python
python编程思路

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

2014-11-18 818

#HTML
实现网页的动态过渡效果

/*打开网页源代码,若你想实现网页以垂直百叶窗的方式打开,可以在源代码的〈head〉与〈/head〉之间加入如下语句*/ 〈meta http-equiv="Page-Enter"…

2014-11-18 509

#APS/Basic
在系统临时目录里创建临时文件

Private Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLen…

2014-11-18 517