- 博客(2)
- 资源 (6)
- 收藏
- 关注
原创 利用map和reduce编写一个str2float函数,把字符串'123.456'转换成浮点数123.456:
# -*- coding: utf-8 -*-from functools import reducedef str2float(s): def fnzs(x,y): return x*10+y; n = s.index('.'); s1 = list(map(int,s[:n])); s2 = list(map(int,s[n+1:]));...
2018-11-24 22:41:09 504
原创 Linux 定时crontab 重启tomcat(杀掉进程后启动)方法
大致环境是这样的在目录/opt/rfid下有一个tomcat文件夹,叫做apache-tomcat-7.0.42,现在需要每天定时重启tomcat。一、 使用touch 命令创建sh脚本1.新建restart-cs.sh文件touch restart-cs.sh2.编辑脚本内容 vi restart-cs.sh#! /bin/shps -ef|grep apach...
2018-11-02 16:40:24 2308
kettle8 模拟表输入查询表名,然后在另一个表输入中使用变量使用
2019-01-15
jqueryBase64 完美支持中文加密解密
2018-05-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人