2017年1月11日

python 连接oracle example

摘要: import NimbulaAPI import cx_Oracle class DBOperation: def __init__(self): pass @staticmethod def nimbula_api(): api = NimbulaAPI.NimbulaAPI() return api @s... 阅读全文

posted @ 2017-01-11 10:08 三分钟热血 阅读(273) 评论(0) 推荐(0)

python ssh

摘要: python 远程执行 ssh 命令@staticmethoddef execute_full(ip, user, password, cmd): ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddP 阅读全文

posted @ 2017-01-11 10:06 三分钟热血 阅读(225) 评论(0) 推荐(0)

python装饰器

摘要: 引用自: http://www.cnblogs.com/rhcad/archive/2011/12/21/2295507.html 第一步:最简单的函数,准备附加额外功能 1 2 3 4 5 6 7 8 # -*- coding:gbk -*- '''示例1: 最简单的函数,表示调用了两次''' d 阅读全文

posted @ 2017-01-11 10:04 三分钟热血 阅读(106) 评论(0) 推荐(0)

2016年10月13日

linux 下运行 java

摘要: 比如我有个 java file need to check if the oracle is connected, and it will use an ojdbc6.jar as class path. 然后在linux 下运行的时候就这样。 1.创建一个run.sh #!/bin/bashCLA 阅读全文

posted @ 2016-10-13 14:45 三分钟热血 阅读(682) 评论(0) 推荐(0)

2016年9月14日

LeetCode1. Two Sum

摘要: 题目: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would hav 阅读全文

posted @ 2016-09-14 14:10 三分钟热血 阅读(173) 评论(0) 推荐(0)

导航