#!/bin/bash#by:V log_dir=(/data/logs/anjubao_syncapi /data/logs/anjubao_wechat) daytime=`date -d ' -1 day ' +%Y%m%d` datatemp=/data/debugtemp if [ ! -d $datatemp ];then mkdir -p $datatemp fi for i in ${log_dir[@]} do if [ ! -d $i ];then echo 'log_dir
数字 1,加减乘除:+,-,*,/ 2,平方:** 3,立方:**3 4,字符串转换:str(数字) 5,浮点数:带小数点 0.2 Python编程建议 import this >>> import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is
//: Playground - noun: a place where people can play import Cocoa var str = "Hello, playground" //这里先提及下, //Swift中的属性的定义 //属性名首字母只能是字母,下划线 //首字母后也只能是数字,字母,下划线 /****************************************常量与变量**/ /**************常量的定义*/ //语法上就是使用let关
#昨日作业解析: # s = 'sadagwa'# i = 0# while i < len(s):# s1 = s[i]# print(s1)# i += 1# while使用技巧,先找递增变量或者递减变量 #简单的加法计算器 print在输入多种元素时要用逗号隔开# content = input('计算:').strip()# s1 = content . split('+')# num = 0# for i in s1:# num += int(i)# print(num) # s =