Liberal lawmakers proposed a bill to reduce the cost of medicine for older Americans.
自由主义立法者提出一条减少老年美国人的医药费的法案。
He is interested in ancient Greek literature.
他对古希腊文学感兴趣。
She liked to pretend that he loved her more than anyone. (2)
她喜欢装成他爱她胜过任何人。
The President chose loyal supporters to serve in his cabinet.
总统选择了忠诚的支持者到他的内阁服务。
He jumps from an airplane and his parachute lets him fall slowly to the ground.
他从飞机跳下,降落伞使他慢慢地降落到地面。
She took the children to watch the Independence Day parade.
她带了孩子去看独立日游行。
The government ended parliament and called new elections.
政府终止国会,要求重新选举。
The child went through a period of intense growth.
那个孩子经过一段剧烈的发育期。
Please tell me your permanent address.
请告诉我你的永久地址。
 Her friends plotted to surprise her with a party.
她的朋友策划给她开个晚会以给她惊喜。
There is plenty of time to see a movie.
有充足的时间看电影。
Police found poison in the woman's food.
警察在这女人的食物里发现了毒药。
She possesses great negotiating skills. (1)
她具有高超的谈判技巧。
People poured from the store when the alarm sounded. (2)
人们听到警报后从店里蜂拥而出。
Kelley's professor praised her test results. (1)
克丽的教授表扬她考试考得不错。
Doctors are trying to prevent the disease from spreading.
医生努力阻止疾病的扩散。
How much profit did you make from selling the stock?
你卖股票赚了多少钱?
Does political propaganda win elections?
政治宣传活动赢得了选举了吗?
 You have to pull, not push the door to open it. (2)
你想开门,必须拉而不是推。
 The broken part would not pump fuel from the tank to the engine.
这个坏零件不能把燃油(燃料)从桶里泵到发动机内。

---------------------------------------------------------------
Shell
---------------------------------------------------------------
if [ $a == $b ]
then
   echo "a is equal to b"
elif [ $a -gt $b ]
then
   echo "a is greater than b"
elif [ $a -lt $b ]
then
   echo "a is less than b"
else
   echo "None of the condition met"
fi
----------------------------------------
if test $[num1] -eq $[num2]
then
    echo 'The two numbers are equal!'
else
    echo 'The two numbers are not equal!'
fi
注意:这里的空格很重要。要确保方括号的空格。
[ -f "somefile" ] :判断是否是一个文件
[ -x "/bin/ls" ] :判断/bin/ls是否存在并有可执行权限
[ -n "$var" ] :判断$var变量是否有值
[ "$a" = "$b" ] :判断$a和$b是否相等
-r file     用户可读为真
-w file     用户可写为真
-x file     用户可执行为真
-f file     文件为正规文件为真
-d file     文件为目录为真
-c file     文件为字符特殊文件为真
-b file     文件为块特殊文件为真
-s file     文件大小非0时为真
-t file     当文件描述符(默认为1)指定的设备为终端时为真
-ne —比较两个参数是否不相等
-lt —参数1是否小于参数2
-le —参数1是否小于等于参数2
-gt —参数1是否大于参数2
-ge —参数1是否大于等于参数2
-f — 检查某文件是否存在(例如,if [ -f "filename" ])
-d — 检查目录是否存在

-eq 等于            if [ "$a" -eq "$b" ]
-ne 不等于         if [ "$a" -ne "$b" ]
-gt 大于            if [ "$a" -gt "$b" ]
-ge 大于等于      if [ "$a" -ge "$b" ]
-lt 小于            if [ "$a" -lt "$b" ]
-le 小于等于      if [ "$a" -le "$b" ]
< 小于(需要双括号)       (( "$a" < "$b" ))
<= 小于等于(...)                (( "$a" <= "$b" ))
> 大于(...)                      (( "$a" > "$b" ))
>= 大于等于(...)                (( "$a" >= "$b" ))

字符串比较:
= 等于           if [ "$a" = "$b" ]
== 与=等价
!= 不等于        if [ "$a" = "$b" ]
< 小于,在ASCII字母中的顺序:
if [[ "$a" < "$b" ]]
if [ "$a" \< "$b" ]         #需要对<进行转义
>大于
-z字符串为null,即长度为0
-n字符串不为null,即长度不为0

--------------------------------------------
#数字段形式
for i in {1..10}
do
   echo $i
done

#详细列出(字符且项数不多)
for File in 1 2 3 4 5
do
    echo $File
done

#对存在的文件进行循环
for shname in `ls *.sh`
do
          name=`echo "$shname" | awk -F. '{print $1}'`          
          echo $name
done

#查找循环(ls数据量太大的时候也可以用这种方法)
for shname in `find . -type f -name "*.sh"`
do
          name=`echo "$shname" | awk -F/ '{print $2}'`         
          echo $name
done

#((语法循环--有点像C语法,但记得双括号
for((i=1;i<100;i++))
do
    if((i%3==0))
    then
        echo $i
        continue
    fi
done

#seq形式 起始从1开始
for i in `seq 100`
do
    if((i%3==0))
    then
        echo $i
        continue
    fi
done

#while循环注意为方括号[],且注意空格
min=1
max=100
while [ $min -le $max ]
do
    echo $min
    min=`expr $min + 1`
done

#双括号形式,内部结构有点像C的语法,注意赋值:i=$(($i+1))
i=1
while(($i<100))
do
    if(($i%4==0))
    then
        echo $i
    fi
    i=$(($i+1))
done

-----------------------------------------------------
Excel
=IF(A1<60,"不及格",IF(AND(A1>60,A1<70),"及格",IF(AND(A1>70,A1<85),"良好",IF(A1>85,"优秀"))))

-----------------------------------------------------

Oracle

sql%found (布尔类型,默认值为null)

sql%notfound(布尔类型,默认值为null)

sql%rowcount(数值类型默认值为0)

sql%isopen(布尔类型)

20151207Study的更多相关文章

随机推荐

  1. xhprof学习笔记

    一.简介 XHProf 是一个轻量级的分层性能测量分析器. 在数据收集阶段,它跟踪调用次数与测量数据,展示程序动态调用的弧线图. 它在报告.后期处理阶段计算了独占的性能度量,例如运行经过的时间.CPU ...

  2. <读书笔记>软件调试之道 :从大局看调试-零容忍策略

    声明:本文档的内容主要来源于书籍<软件调试修炼之道>作者Paul Butcher,属于读书笔记.欢迎转载! ---------------------------------------- ...

  3. 在线c++编译器(gcc)

    这几年c++标准委员会活跃起来,C++11.14标准相续推出.对于想尝鲜又怕麻烦(visual studio 更新慢,对标准的支持力度也不够.对于使用gcc的,替换系统的gcc版本或者安装个mingw ...

  4. Flume整合Spark Streaming

    Spark版本1.5.2,Flume版本:1.6 Flume agent配置文件:spool-8.51.conf agent.sources = source1 agent.channels = me ...

  5. py-faster-rcnn(running the demo): ubuntu14.04+caffe+cuda7.5+cudnn5.1.3+python2.7环境搭建记录

    第一次写博客,以此纪念这几天安装caffe,跑faster-rcnn的血泪史.在此特别感谢网络各路大神,来自全球各地,让我能从中汲取营养,吸取经验,总结规律. faster-rcnn分为matlab版 ...

  6. mybatis单个插入和批量插入的简单比较

    在J2EE项目中,mybatis作为主流持久层框架,许多知识值得我们去钻研学习,今天,记录一下数据插入性能(单个插入和批量插入). 一,测试对象 public class Test { private ...

  7. TJI读书笔记16-异常处理

    TJI读书笔记16-异常处理 概念 基本异常情形 异常的捕获 自定义异常 异常说明 捕获所有异常 栈轨迹 重新抛出异常 Java标准异常 使用finally 异常的限制 构造器 异常的匹配 其他乱七八 ...

  8. Android-monkey稳定性测试(多台设备同时进行)

                                       1.目的(原创文章,转载请注明出处-) 主要为指引开展android平台应用的稳定性测试,尽可能地在应用发布前发现crash及an ...

  9. How to Programmatically Impersonate Users in SharePoint

      Sometimes when creating SharePoint web or console applications, you may need to execute specific c ...

  10. document.createElement()方法

    document.createElement()是在对象中创建一个对象,主要和appendChild() 方法或者insertBefore() 方法联合使用. appendChild() 方法在节点的 ...