
python
yingcly003
我的梦想是做IT界的企业家
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
pycharm设置属性
https://www.cnblogs.com/willpower-chen/p/5556619.html转载 2018-01-29 16:10:42 · 1786 阅读 · 0 评论 -
python协程
import asyncio import time now = lambda: time.time() async def do_some_work(x): print('Waiting: ', x) await asyncio.sleep(x) return 'Done after {}s'.format(x) start = now() cor...转载 2018-04-10 11:25:50 · 128 阅读 · 0 评论 -
python远程连接
#! /usr/bin/env python3 # coding:utf-8 import paramiko import re from os import path import time import logging import logging.handlers # hostname = '132.33.35.23' # username = 'ftstp' # password = ...原创 2018-04-23 14:49:08 · 1978 阅读 · 0 评论 -
python 脚本开机自启动
#!/usr/bin/env bash #chkconfig: 2345 88 99 #description:开机自动启动server source /etc/profile cd /opt/EMS/scripts/qxb_zhubei_python/server/operation nohup python3 -B /opt/EMS/scripts/qxb_zhubei_python/ser...原创 2018-04-13 18:04:29 · 1297 阅读 · 0 评论 -
python 定时器
参考https://www.cnblogs.com/wang-can/p/3582051.html另外:使用timer代替event.wait 和while判断的循环。原创 2018-05-28 16:15:38 · 216 阅读 · 0 评论 -
cx_oracle dsn连接方法,可测试数据库双机
import cx_Oracle import time while true: db_pool = cx_Oracle.SessionPool('rig', 'xtyw263sep', 'RWDB1', 1, 3, 1) conn = db_pool.acquire() #用自己的实际数据库用户名、密码、主机ip地址 替换即可 curs=conn.cursor() print(c...原创 2018-10-23 11:49:15 · 664 阅读 · 0 评论