php 语句 $is_index >= 0 && $where .= " AND is_index=" .$is_ind

印象天2022-10-04 11:39:541条回答

php 语句 $is_index >= 0 && $where .= " AND is_index=" .$is_index;
$is_index >= 0 && $where .= " AND is_index=" .$is_index;
前面判断是否是大于等于零,关键是中间加了&&与逻辑符,这个就有点弄不懂了

已提交,审核后显示!提交回复

共1条回复
天使也会哭 共回答了10个问题 | 采纳率90%
这个是一个技巧.
对于||操作,php按照顺序判断,当发现了真值后就不再进行其他的判断,如 1 || (echo 'test'),echo 'test'是不会执行的,因为第一个表达式是1,后面就不用再判断了,而 0 || (echo 'test')则会看到test的输出
同理,对于&&操作符,当php发现一个值为假时,就不再继续判断了,因此当$is_index为0时 $is_index >=0 && $where.=' and ...'中 后面的$where赋值不会被执行,反之 则会为$where赋值
问题中的代码等效于
if ($is_index >= 0) $where .= "AND is_index = " .$is_index;
1年前

相关推荐

SQL语句case whenselect trunc(date '2009-01-0
SQL语句case when
select trunc(date '2009-01-01','dd') as date_id, b.org_id as org_id, b.risk_id as risk_id, sum(a.planfee-nvl(c.payreffee,0)) , (case when to_char(statistic_date-payrefdate>=0) and to_char(statistic_date-payrefdate<90) then sum(a.planfee-nvl(c.payreffee,0)) else '' end), (case when to_char(statistic_date-payrefdate>=90) and to_char(statistic_date-payrefdate<180) then sum(a.planfee-nvl(c.payreffee,0)) else '' end), (case when to_char(statistic_date-payrefdate>=180) and to_char(statistic_date-payrefdate<360) then sum(a.planfee-nvl(c.payreffee,0)) else '' end), (case when to_char(statistic_date-payrefdate>=360) and to_char(statistic_date-payrefdate<720) then sum(a.planfee-nvl(c.payreffee,0)) else '' end), (case when to_char(statistic_date-payrefdate>=720) then sum(a.planfee-nvl(c.payreffee,0)) else '' end) from dm_f_prpjplanfee_prop a,dm_policy_prop_cnt b,(select certino,serialno,sum(payreffee) as payreffee from dm_f_prpjpayrefrec_prop where payrefdate<=(date'2009-01-31') group by certino,serialno) cwhere a.certino=b.endorse_no and a.certino=c.certino(+) and a.serialno=c.serialno(+)and not exists (select 1 from dm_policy_prop_cnt where b.policy_no = policy_no and endorse_type_code = '19' and certi_type = 'E' and statistic_date <= date '2009-01-31') --and b.policy_no='605012008110000000741' and b.statistic_date <= date '2009-01-31' group by trunc(date '2009-01-31','dd'),b.org_id,b.risk_id 这是一个SQL里面的case when语句,如果执行这个语句,会提示缺少右括号,但如果把case when语句去掉,就可以执行这个语句.
baobao95271年前1
天丿下 共回答了21个问题 | 采纳率90.5%
太长了,但是看到一个问题,case when,要求返回的类型必须一直.
你看你的第一个case when语句
(case when to_char(statistic_date-payrefdate>=0) and to_char(statistic_date-payrefdate
英语口语交际基本语句
紫蓝色的记忆1年前4
wzq555666 共回答了13个问题 | 采纳率84.6%
Good morning.
  Good morning, John. (早晨好,约翰.)
  Good morning, mom. (早晨好,妈妈.)
  闹钟响了吗?
  Did the alarm clock go off? *go off是闹钟“响”的意思.
  Did the alarm clock buzz?
  Did the alarm clock ring?
  该起床了!
  It's time to get up!
  It's time to get up! (该起床了!)
  I don't wanna get up. (我真不想起.)
  It's time to wake up!
  It's time to get out of bed.
  It's time to get ready.
  快点儿起床!
  Get up soon.
  Get up soon. (快点儿起床!)
  I don't want to. (我真不想起.)
  你醒了吗?
  Are you awake? *get up是动词,表示“起床”、“起”的动作.awake是形容词,表示“醒了”、“没睡”的状态.
  Are you awake? (你醒了吗?)
  I am now. (我刚醒.)
  你不舒服吗?
  Are you feeling sick?
  Are you feeling sick? (你不舒服吗?)
  No, I'm just tired. (没有,只是有点儿累.)
  睡得好吗?
  Did you sleep well?
  Did you sleep well? (睡得好吗?)
  Yes, I slept very well. (嗯,睡得挺好.)
  Did you sleep well? (睡得好吗?)
  No, I couldn't fall asleep. (哪儿啊,几乎没睡着.)
  能帮我关掉闹钟吗?
  Would you turn off the alarm clock? *turn off的原意是“关”,多用于收音机、电视、照明等类的东西.虽然现在有许多东西无需用按钮开关,但一般也用turn off表示.
  Please turn off the alarm clock. (请把闹钟关了.)
  你终于起来了.
  You finally got up.
  You finally got up. (你终于起来了.)
  I'm still sleepy. (我还困着呢!)
  今天是个好天!
  It's a nice day!
  It's a nice day! (今天是个好天!)
  It sure is. (是不错啊.)
  It's a beautiful day!
  It's a wonderful day!
  It's a great day!
  昨晚你熬夜了?
  Did you stay up late last night? *stay up late“睡得晚”、“熬夜”.
  Did you go to bed late last night?
  把被子叠好.
  Let's fold up the futon. *fold意为“折叠”,fold up意为“叠好”、“叠整齐”;futon原本是日文,现在英文中也逐渐使用,意为“被子”.
  Let's put the futon away. (把被子收起来吧.)
  昨天晚上你打呼噜了.
  You were snoring last night. *snore“打呼噜”.
  You were snoring last night. (昨天晚上你打呼噜了.)
  Did I keep you up? (影响你睡觉了吗?)
  You were sawing logs last night. *saw logs原意为“锯木头”,在此用来表示“打呼噜”.
  我做了个可怕的梦.
  I had a nightmare.
  I had a nightmare. (我做了个可怕的梦.)
  It's all right now. (现在没事了.)
  你一直没关灯啊.
  You left the light on. *left (leave)是“保持某种样子”、“保持某种状态”的意思,表达“电灯一直开着”、“发动机一直开着”、“窗户一直开着”也可以用这种句型.
  You forgot to turn off the light. (你忘了关灯了.)
  我得洗脸了.
  I have to go wash my face. *go wash是go和wash两个动词连用,口语中常用.可以把它看作是go and wash的缩略形式.
  该吃早饭了.
  It's time to eat breakfast.
  It's time to have breakfast.
  我还困着呢.
  I'm still sleepy.
  I'm still drowsy.
  我还打哈欠呢.
  I'm still yawning.
  昨天的酒还没醒呢.
  I have a hangover.
  我是个夜猫子.
  I'm a night person. *“早上起不来”的意思.
  I'm a night person. (我是个夜猫子.)
  I'm not. (我可不是.)
  I'm a morning person. (我喜欢早起.)
  我是用咖啡来提神的.
  Coffee wakes me up.
  Coffee gets me going.
  刷牙了吗?
  Did you brush your teeth?
  Have you brushed your teeth?
  我得梳梳头了.
  I have to comb my hair.
  穿什么好呢?
  What should I wear?
  What should I wear? (穿什么好呢?)
  The red one. (穿红的吧!)
  Which dress should I wear?
  Which one should I wear?
  What should I put on?
  快换衣服.
  Hurry up and get dressed.
  Hurry up and get dressed. (快换衣服.)
  Why? (干嘛?)
  把睡衣收好.
  Put those pajamas away!
  Put those pajamas away! (把睡衣收好.)
  Oh, I'm washing those. (啊,我正要洗呢.)
  我走了,妈妈.
  I'm leaving. Bye mom!
  I'm leaving. Bye mom! (我走了.妈妈再见!)
  Study hard. (好好学习啊!)
  I'll see you when I get back.
  I'm taking off now.
  See you.
  See you later.
  今天我们逃学吧.
  Let's play hooky today! *play hooky为俚语“逃学”.
  Let's play hooky today! (今天我们逃学吧.)
  Yeah, let's. (好哇,走吧!)
  你毛衣穿反了.
  You're wearing your sweater inside out.
  You have your sweater on inside out.
  上下颠倒了.
  It's upside down.
  别忘了扔垃圾呀.
  Don't forget to take out the garbage.
  Don't forget to take out the garbage. (可别忘了扔垃圾!)
  I won't. (忘不了!)
  今天该你扔垃圾了.
  It's your turn to take out the garbage. *garbage也可以用trash和rubbish替代.
  今天你干什么?
  What are you doing today?
  What are you doing today? (今天你们干嘛?)
  We're having a track and field meet. (今天我们开运动会.)
  你快点儿,我们该迟到了.
  If you don't hurry, we'll be late.
  If you don't hurry, we'll be late. (你快点儿,我们该迟到了!)
  Okay, Okay. (知道了,知道了.)
  Hurry up or we'll be late.
  快点儿,上学该迟到了.
  Hurry or you'll be late for school.
  Hurry or you'll be late for school. (快点儿,上学该迟到了.)
  What time is it? (现在几点?)
  你锁门了吗?
  Did you lock the door?
  Have you locked the door?
  没忘了什么东西吧?
  Aren't you forgetting something?
  Aren't you forgetting something? (没忘了什么东西吧?)
  I don't think so. (我想没有.)
  都已经8点了!
  It's already 8:00.
  It's 8:00 already.
  我晚了!
  I'm late!
  I'm late! (我晚了!)
  Hurry up! (快点儿吧!)
  我得赶紧走!
  I have to rush!
  I have to hurry (up)!
  I have to get going!
  I have to get moving.
  你今天会回来得晚吗?
  Are you gonna be late today?
  Are you gonna be late today? (你今天会回来得晚吗?)
  No, I'll be home at the usual time. (不,和平常一样.)
  几点回来?
  What time are you coming home?
  What time are you coming home? (几点回来?)
  Around seven o'clock. (大概7点左右吧.)
  饭盒带了吗?
  Have you got your lunch box?
  Have you got your lunch box? (饭盒带了吗?)
  Yes, right here. (嗯,带了.)
  今天好像要下雨.
  It might rain today.
  It might rain today. (今天好像要下雨.)
  Take your umbrella with you. (带上伞吧!)
  出门的时候,可别忘了锁门.
  Don't forget to lock the door when you leave.
  ●从回家到就寝
  我回来了.
  I'm home.
  I'm home. (我回来了.)
  Welcome back. (你回来了.)
  I'm back!
  你回来了.
  Welcome home!
  Welcome back!
  今天过得愉快吗?
  Did you have a good time?
  今天怎么样?
  How did it go today?
  How was your day?
  我可以出去玩儿会儿吗?
  Can I go out to play?
  Can I go out to play? (我可以出去玩儿会儿吗?)
  After you finish your homework. (写完作业再去吧.)
  我饿了.
  I'm hungry.
  I'm hungry. (我饿了.)
  We have some snacks. (吃点儿点心吧.)
  点心在哪儿?
  Where are the snacks?
  Where are the snacks? (点心在哪儿?)
  They're in the cupboard. (在碗橱里.)
  我去学校补习了啊.
  I'm going to cram school now. *cram意为“填鸭式补习”.
  I'm going to cram school now. (我去补习学校了啊.)
  Call when you finish. (下课后来个电话.)
  能给我点儿零花钱吗?
  May I have my allowance?
  May I have my allowance? (能给我点儿零花钱吗?)
  What do you want to buy? (你要买什么呀?)
  真累啊!
  I'm tired.
  I'm exhausted. (我精疲力尽了)
  I'm pooped. *俚语
  晚饭你想吃什么?
  What would you like for dinner?
  What would you like for dinner? (晚饭你想吃什么?)
  How about steak? (吃牛排怎么样?)
  What do you want for dinner? (晚饭吃什么?)
  What do you want to eat for dinner? (晚饭你想吃点什么?)
  你能帮我准备餐具吗?
  Would you help me set the table? *set the table 是将刀、叉和杯子在桌子上摆好,准备吃饭的意思.
  Would you help me set the table? (你能帮我准备餐具吗?)
  I'd be happy to. (乐意之至.)
  Help me set up the table, will you? (你能帮我把餐具摆好吗?)
  晚饭做什么好呢?
  What should I make for dinner?
  What should I whip up for dinner?
  What should I cook for dinner?
  What should I fix for dinner?
英语修改!看看以下英语语句是否正确!
英语修改!看看以下英语语句是否正确!
Lost all world,for me is not important.Only you are in my heart!
Because you are my all.If you left me,I will did know ,where was I should gone.
(大概意思是:失去整个世界对我来说都不重要.在我的心里只有你!因为你是我的全部.如果你离开了我,我不知道我应该去哪里!)
帮忙修改下英文语句中的错误,谢谢!
tingyu1631年前4
cq25 共回答了19个问题 | 采纳率89.5%
I don't care about losing the whole world as long as you are right here in my heart.Because you are all I've got and I don't know where my destination is without you by my side.
语句I've gotten carried away
语句I've gotten carried away
I've gotten carried away 这句话是什么时态 分析一下这句话
为什么get用过去分词而carry用过去式
dino492241年前2
baozi024 共回答了21个问题 | 采纳率81%
get有个用法是后面加形容词
例如get green , get hot
这里也是一样的用法,carried是过去分词作形容词
VHDL wait for语句library IEEE;use ieee.std_logic_1164.all;use
VHDL wait for语句
library IEEE;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity fpga_topp is
port ( SPI_CS: OUT std_logic);
end fpga_topp;
architecture RTL of fpga_topp is
BEGIN
PROCESS
BEGIN
loop1:loop
SPI_CS
liuweiping1181年前1
汉朝人 共回答了23个问题 | 采纳率91.3%
你在用软件的思路设计硬件,是不会有结果的.
因为软件是顺序执行的,硬件是并行工作的.
你的设计实体要有输入信号,你想让输出信号SPI_CS每个周期(200ns)输出170ns低电平,30ns高电平,那就设计一个输入时钟信号clk,周期为10ns,设计计数器为0~19,每个clk周期加1,当计数器值为0~2时SPI_CS输出高电平,3~19时输出低电平就可以了.
你的进程需要敏感信号clk,在每个clk的有效边沿(例如上升沿)让计数器加1.
不需要LOOP语句,LOOP语句不是你想的那样执行循环体.一定记住你在描述硬件而不是执行软件指令.
语句on (release) gotoAndPlay(1);a.xvel = 30; a.yvel =
mykeny1年前1
xiaojian531 共回答了19个问题 | 采纳率89.5%
应该是FLASH脚本把.当释放鼠标的按键时,从当前帧跳到第一帧开始播放.a.xvel = 30; a.yvel = 56;就是一个物体坐标吧.
条件语句 if odd(i) then
条件语句 if odd(i) then
odd 代表什么?
Maggie_well1年前1
品茗论弈 共回答了24个问题 | 采纳率75%
delphi odd函数 ,判断是否奇数.是奇数返回ture.
如何使用循环语句缩短程序subplot(521);plot(index,a1);subplot(522);plot(in
如何使用循环语句缩短程序
subplot(521);
plot(index,a1);
subplot(522);
plot(index,a2);
subplot(523);
plot(index,a3);
subplot(524);
plot(index,a4);
subplot(525);
plot(index,a5);
subplot(526);
plot(index,d1);
subplot(527);
plot(index,d2);
subplot(528);
plot(index,d3);
subplot(529);
plot(index,d4);
subplot(5,2,10);
plot(index,d5); 以上是程序的一部分,我想问下可不可以把这段程序用循环语句简练的表达出来,这样实在是太麻烦了,麻烦大神老师们给看看,跪谢!
荒诞的智者1年前1
aiaidejia 共回答了16个问题 | 采纳率81.3%
也许可以这样:
1、subplot语句因为其参数是有规律地递增,所以是完全可以用循环表达的.
2、plot语句,其中的index和第二个参数是常量还是变量?如果index是变量,则可以在每次循环中进行更新.第二个参数,完全可以把a1, a2, a3, a4,a5, d1,等等,这样的参数事先组成一个数组,然后每次循环读取对应的值,然后数组的索引递增,这样就能把两个语句都放到循环中了.
英语语句语法GaiCyEmployee can benefit from telecommuting than empl
英语语句语法GaiCy
Employee can benefit from telecommuting than employer.这句有什么语法错误
guduzhiyi1年前1
先知萎 共回答了22个问题 | 采纳率86.4%
应该是 benefit more,少了比较级
C语言语句,z+=++x+y++这个式子怎么理解
原装尘世美1年前1
剑皇 共回答了20个问题 | 采纳率100%
x=x+1;
z=z+x+y;
y=y+1;
下列语句排序.1.Do you have any brothers or sisters?2.I'm twelve 3.
下列语句排序.
1.Do you have any brothers or sisters?2.I'm twelve 3.So your brother is taller thanyou,I think 4.No,he is as tall as me 5.Who's older,your brother or you?6.How old are you,Helen?7.Yes .I have a brother 8.My brother is.but he's only one year older than me?
571734761年前1
不当红 共回答了14个问题 | 采纳率92.9%
1 ,7,6 ,2 ,5 ,8,3,41.Do you have any brothers or sisters?7.Yes .I have a brother6.How old are you,Helen?2.I'm twelve5.Who's older,your brother or you?8.My brother is.but he's only one year older than ...
英语 被动语句 (8 10:47:34)
英语 被动语句 (8 10:47:34)
They took the man to the hospital last night and            
A.he’s already been operated            B.he has already been operated on
C.he would be operated                          D.he had already been operated on
lzfzorro1年前4
缠绵游戏47 共回答了20个问题 | 采纳率85%
B,并列陈述句
operate on固定词组 给……做手术
因为the man是做手术的对象,所以应该用被动语态
根据题意,前句用过去时,后句用现在完成时的被动语态
翻译:他们昨天晚上把这个男人送到了医院,他现在已经做完手术了
slq语句 substring (firstname,1,3)+ substring (lastname,1,
gaofeng11291年前1
tclua 共回答了18个问题 | 采纳率94.4%
DECLARE @firstname varchar(20),@lastname varchar(20),@Result varchar(20)
SET @firstname='Michael'
SET @lastname='Jordan'
SET @Result =substring (@firstname,1,3)+ substring (@lastname,1,2)
@Result =MicJo
判断语句正确
判断语句正确

cqtangzheng1年前1
muse6656 共回答了13个问题 | 采纳率100%
D
数学循环语句.
数学循环语句.


公子小束负1年前1
寒塘枫雨 共回答了19个问题 | 采纳率63.2%
For语句:
S=1
fot i=1000 to 2010
S=S*i
next
DO LOOP语句
S=1
i=1000
do while i
Tow kilos of apples is enough.语句是否正确
Tow kilos of apples is enough.语句是否正确
前面有人说Tow kilos of fish is enough.是正确的,但fish是不可数名词,如果用apples是否也正确呢
FantasyFive1年前5
lwtv0001 共回答了11个问题 | 采纳率90.9%
正确的,因为这里的主语是一个整体,也就是整体的量,而不是能把他们分开来
if语句实现y=x2-1,x0 y=0 x=0
yfhjy1年前1
toonoeiji 共回答了20个问题 | 采纳率90%
if (x < 0)
{
y=2x-3;
}else
{
if(x=0)
y=0;
else
y=2x-1;
}
for循环语句 for(a=0,b=0;(b!=123)&&(a
xiaojingzi21年前1
小失忆郎侃球ID 共回答了9个问题 | 采纳率100%
(b!=123)和(a
oracle 语句 查询优化select count(*),sum(bal) from rpt_xd where sub
oracle 语句 查询优化
select count(*),sum(bal) from rpt_xd where substr(beg_date,5,2)= substr('20130131',5,2) and substr(beg_date,1,4)=substr('20130131',1,4) and term_mon3 and term_mon6 and term_mon12
能不能帮我弄成一句话啊 这样分着写太麻烦了 其实只有后面的term_mon条件不同 查询每段term_mon的count(*) 和sum(bal)
我的sql语句学的不是很好 如果有别的方式修改就更好了
戎í戎1年前1
jiyanwl 共回答了19个问题 | 采纳率89.5%
这的SQL是相对简单,你先看看这两个表的索引字段? SQL优化,要考虑许多方面,包括图书馆的性能,服务器的性能,SQL,如此全面的!
英文论文语句解释Third, we find that the distribution of both measure
英文论文语句解释
Third, we find that the distribution of both measures follows a Fre´ chet-type distribution
characterized by a broad tail of a few exceptionally fit mutants.
这句话怎么翻译.
nhmxy1年前2
yx520 共回答了11个问题 | 采纳率81.8%
第三,我们发现两种方法组的分布遵循Fre´chet类型分布,其特点是少量特别健康的突变体上有宽大的尾巴
不晓得这样翻译对不对.起码要给上上下文.或者是文章具体涉及是哪一方面的内容.不然很难知道一些词的具体含义的.
解读语句 i=1 amt=0 do while i
gongguan_cai1年前1
yuyang8115 共回答了18个问题 | 采纳率88.9%
i=1 amt=0 do while i2)
英语语句选择It's good to be in_____in summerA:black B:white c:oran
英语语句选择
It's good to be in_____in summer
A:black B:white c:orange D:dark blue
万俟成1年前2
songlishuai 共回答了11个问题 | 采纳率100%
选white,意思是穿白色衣服,不那么吸热
倒装语句解释parents may help their children more than do good teac
倒装语句解释
parents may help their children more than do good teachers
请问这句的倒装是出于什么语法?顺便举个例子,
比见问1年前1
zhenzy200 共回答了14个问题 | 采纳率92.9%
这个句子其实是用了两次比较级,parents may help their children much more /than good teachers do(do在次是代指help the children).
parents might do their children harm more /than do bad teachers (相当于bad teachers do their children harm).
高中英语作文优秀语句
F_cloud1年前2
大耳狐 共回答了23个问题 | 采纳率87%
1. Helen is the most beautiful girl that I have ever seen.
2. Nothing is more important than to receive education.没有什么比接受教育更重要了
3. There is no doubt that our educational system leaves somethin...
if 条件语句语法if (((O2[l]>0.5)&&(T[l]=1))||((O2[l]
孤独的白菜1年前1
overstressedpig 共回答了14个问题 | 采纳率78.6%
if (((O2[l]>0.5)&&(T[l]==1))||((O2[l]
守株待兔属于口头俗语还是历史故事还是神话寓言还是诗文语句?
乐兮5111年前1
于19870212 共回答了25个问题 | 采纳率88%
寓言故事
Where are you going to spend your holidays this year--课本语句
Where are you going to spend your holidays this year--课本语句
能不能改成:Where are you going to spend on your holidays this year--在“your holidays this year”前多了on,我以前知道的spend用法是:spend on + sth.或spend (in) doing +sth
anywherezi1年前2
找nn中 共回答了19个问题 | 采纳率100%
不能改成加“ON”的句子.
spend on + sth.的ON接的是花费或度过在哪一方面.
要说spend on holidays,那on holidays只是状语,而不是“spend on...”句型.
oracle 语句 where t1.row_id=t2.row_id(+)
qqguan721年前1
AspireMate 共回答了19个问题 | 采纳率94.7%
左连接,相当于
select ...
from t2 left join t1
on t1.row_id=t2.row_id
bat for语句@echo offfor /l %%i in (1,1,30) do ( echo %%i)pause
bat for语句
@echo off
for /l %%i in (1,1,30) do (
echo %%i
)
pause

@echo off
for /l %%i in (1,1,30) do (
set k=%%i
echo
)
pause

@echo off
setlocal enabledelayedexpansion
for /l %%i in (1,1,30) do (
set s=%%i
echo
)
pause
都一样啊 有什么区别?我现在想学for语句没学过c“ 静态变量”概念 等 谁给我讲讲for的应用
忧郁兰的S大娘1年前1
gaogaoli2001 共回答了24个问题 | 采纳率91.7%
来自批处理之家的解释,我自己学的时候整理的,看看,肯定有用.
变量延迟在for语句中起着至关重要的作用,不只是在for语句中,在其他的复合语句中,它也在幕后默默地工作着,为了突出它的重要性,本节内容在单独的楼层中发出来,希望引起大家的重视.
对于批处理新手而言,“变量延迟”这个概念很可能闻所未闻,但是,它却像一堵横亘在你前进道路上的无形高墙,你感受不到它的存在,但当你试图往前冲时,它会把你狠狠地弹回来,让你无法逾越、无功而返;而一旦找到了越过它的方法,你就会发现,在for的世界里,前面已经是一片坦途,而你对批处理的理解,又上升到了一个新的境界.
例如,你编写了这样一个代码:
@echo off
set num=0echo %num%
pause
你的本意是想对变量num赋值之后,再把这个值显示出来,结果,显示出来的并不是0,而是显示:ECHO 处于关闭状态.之所以会出错,是因为“变量延迟”这个家伙在作怪.
在讲解变量延迟之前,我们需要了解一下批处理的执行过程,它将有助于我们深入理解变量延迟.
1、批处理的执行过程
“自上而下,逐条执行”,我想,这个经典的说法大家都已经耳熟能详了,没事的时候倒着念,也还别有一番古韵呢^_^,但是,我想问大家的是,大家真的深刻地理解了这句话的含义了吗?
“自上而下”,这一条和我们本节的讲解关系不大,暂时略过不说,后一条,“逐条执行”和变量延迟有着莫大的干系,它是我们本节要关注的重点.
很多人往往认为一行代码就是一条语句,从而把“逐条执行”与“逐行执行”等同起来,这就大错特错了.
莫非“逐条执行”里暗藏着玄机?正是如此.
“逐条”并不等同于“逐行”.这个“条”,是“一条完整的语句”的意思,并不是指“一行代码”.在批处理中,是不是一条完整的语句,并不是以行来论的,而是要看它的作用范围.
什么样的语句才算“一条完整的语句”呢?
· 在复合语句中,整个复合语句是一条完整的语句,而无论这个复合语句占用了多少行的位置.常见的复合语句有:for语句、if……else语句、用连接符&、||和&&连接的语句,用管道符号|连接的语句,以及用括号括起来的、由多条语句组合而成的语句块;
· 在非复合语句中,如果该语句占据了一行的位置,则该行代码为一条完整的语句.
例如:
@echo off
set num=0
for /f %%i in ('dir /a-d /b *.exe') do (
set /a num+=1
echo num 当前的值是 %num%
)
echo 当前目录下共有 %num% 个exe文件
dir /a-d /b *.txt|findstr "test">nul&&(
echo 存在含有 test 字符串的文本本件
)||echo 不存在含有 test 字符串的文本文件
if exist test.ini (
echo 存在 test.ini 文件
) else echo 不存在 test.ini 文件
pause
上面的代码共有14行,但是只有完整的语句只有7条,它们分别是:
第1条:第1行的echo语句;
第2条:第2行的set语句;
第3条:第3、4、5、6行上的for复合语句;
第4条:第7行的echo语句;
第5条:第8、9、10行上用&&和||连接的复合语句;
第6条:第11、12、13行上的if……else复合语句;
第7条:第14行上的pause语句.
在这里,我之所以要花这么长的篇幅来说明一行代码并不见得就是一条语句,是因为批处理的执行特点是“逐条”执行而不是“逐行”执行,澄清了这个误解,将会更加理解批处理的预处理机制.
2、预处理
在代码“逐条”执行的过程中,cmd.exe这个批处理解释器会对每条语句做一些预处理工作,这就是批处理中大名鼎鼎的“预处理机制”.
预处理机制:首先,把一条完整的语句读入内存中,不管这条语句有多少行,它们都会被一起读入,然后,识别出哪些部分是命令关键字,哪些是开关、哪些是参数,哪些是变量引用等等.如果代码语法有误,则给出错误提示或退出批处理环境;如果顺利通过,最后,就把该条语句中所有被引用的变量及变量两边的百分号对,用这条语句被读入内存之就已经赋予该变量的具体值来替换.当所有的预处理工作完成之后,批处理才会执行每条完整语句内部每个命令的原有功能.
也就是说:如果命令语句中含有变量引用(变量及紧邻它左右的一对百分号),并且某个变量的值在命令的执行过程中被改变了,即使该条语句内部的其他地方也用到了这个变量,也不会用最新的值去替换它们,因为某条语句在被预处理的时候,所有的变量引用都已经被替换成字符串常量了.
我们了解到:变量值在复合语句内部被改变,不会影响到语句内部的其他任何地方.
看个例子帮助理
@echo off
set /a var=0
for /l %%i in (1,1,5) do (
set /a var=var+100
set temp=%var%
)
echo %temp%
pause
我们的本意是将var这个变量执行5次加100运算,并且把每次运算得到的数值赋值给一个新的变量temp,最终结果用temp输出,在其他语言中我们口头得到结果是500,但是批处理给出我们一个0.
根据预处理机制,我们解释一下:
在执行前,对for语句进行预处理的时候var的值是0,首先所%var%的值进行替换,于是%var%=0,这个值会始终保持不变,于是我们得到最终的结果为0.
3、使用变量延迟
那怎么才能实现我们希望得到的功能呢?
解决办法:使用变量延迟扩展语句,让变量的扩展行为延迟一下,从而获取我们想要的值.
一般说来,延迟变量的扩展行为,可以有如下选择:
· 在适当位置使用 setlocal enabledelayedexpansion 语句,开启变量延迟;
· 在适当的位置使用 call 语句.
其中“变量扩展”就是将使用一对百分号闭合环境变量以完成对其值的替换行为.说得直白一点,所谓的“变量扩展”,实际上就是用具体的值去替换被引用的变量及紧贴在它左右的那对百分号.
①使用 setlocal enabledelayedexpansion 语句
@echo off
setlocal enabledelayedexpansion
set num=0&&echo !num!
Pause

@echo off
setlocal enabledelayedexpansion
set /a var=0
for /l %%i in (1,1,5) do (
set /a var=var+100
set temp=!var!
)
echo !temp!
pause
②使用call语句
@echo off
set num=0&&call echo %%num%%
Pause

@echo off
set /a var=0
for /l %%i in (1,1,5) do (
set /a var=var+100
call set temp=%%var%%
)
echo %temp%
pause
由此可见,如果使用 setlocal enabledelayedexpansion 语句来延迟变量,就要把原本使用百分号对闭合的变量引用改为使用感叹号对来闭合;如果使用call语句,就要在原来命令的前部加上 call 命令,并把变量引用的单层百分号对改为双层. 其中,因为call语句使用的是双层百分号对,容易使人犯迷糊,所以用得较少,常用的是使用 setlocal enabledelayedexpansion 语句(set是设置的意思,local是本地的意思,enable是能够的意思,delayed是延迟的意思,expansion是扩展的意思,合起来,就是:让变量成为局部变量,并延迟它的扩展行为).
四、总结
①、为什么要使用变量延迟?
因为要让复合语句内部的变量实时感知到变量值的变化.
②、在哪些场合需要使用变量延迟语句?
在复合语句内部,如果某个变量的值发生了改变,并且改变后的值需要在复合语句内部的其他地方被用到,那么,就需要使用变量延迟语句.而复合语句有:for语句、if……else语句、用连接符&、||和&&连接的语句、用管道符号|连接的语句,以及用括号括起来的、由多条语句组合而成的语句块.最常见的场合,则是for语句和if……else语句.
③、怎样使用变量延迟?
· 使用 setlocal enabledelayedexpansion 语句:在获取变化的变量值语句之前使用setlocal enabledelayedexpansion,并把原本使用百分号对闭合的变量引用改为使用感叹号对来闭合;
· 使用 call 语句:在原来命令的前部加上 call 命令,并把变量引用的单层百分号对改为双层.
“变量延迟”是批处理中一个十分重要的机制,它因预处理机制而生,用于复合语句,特别是大量使用于强大的for语句中.只有熟练地使用这一机制,才能在for的世界中如鱼得水,让自己的批处理水平更上一层楼.很多时候,对for的处理机制,我们一直是雾里看花,即使偶有所得,也只是只可意会难以言传.希望大家反复揣摩,多加练习,很多细节上的经验,是只有通过大量的摸索才能得到的.
Good Luck!
VB while语句Private Sub Command2_Click()Dim x As SingleDim y A
VB while语句
Private Sub Command2_Click()
Dim x As Single
Dim y As Single
Randomize
x = Int(Rnd * 900) + 1
Randomize
y = Int(Rnd * 900) + 1
t = Text1.Text
r = 0
While r < t
If 0 < x And x < 300 Then

m = 1

ElseIf 3 < x And x
lchywl1年前1
云儿86 共回答了15个问题 | 采纳率86.7%
“t = Text1.Text”中t的数据类型为字符串型无法和整形比较,你可以将此句该为“t=int(Text1.text)或者t=val(Text1,text)”
循环语句for a=1 to 3 a +=a next
循环语句

for a=1 to 3 a +=a next ←这是什么跟什么?

新手VB,>_<~
liuxuan20051年前1
liutenghai 共回答了21个问题 | 采纳率90.5%
a 初始值是什么?
如果没声明a的话,初始值是0
那么循环后结果应该是 7 .

如果初始值是别的就不知道了,你没给完整.
英语错误语句改正1.Everyone have a lot of fun at Lily's birthday part
英语错误语句改正
1.Everyone have a lot of fun at Lily's birthday party.
2.Some eles people are sitting under the tree and talking.
3.These are some milk,snacks,apples and sweets on the table.
ZUIAICHXH1年前6
付申126 共回答了16个问题 | 采纳率100%
1 have改为has
2 去掉eles
2 these改为there,
SQL语句 如果A=1 B=2 C=3 那么D等于5
SQL语句 如果A=1 B=2 C=3 那么D等于5
标题党,
检查如果A字段=1 B字段=2 C字段=3 那么D字段等于5
这个语句怎么写?
含笑的飞雪20071年前1
爱兮殇兮 共回答了23个问题 | 采纳率100%
update 表名 set D=5 where A字段=1 and B字段=2 and C字段=3
PHP if..else语句问题
PHP if..else语句问题
如果$a是10,那么什么也不做..如果$a=任意字母 那么就$b=$c,下面是我写的,.
if ($a == "10"){
}
else (preg_match('/^[a-zd_]{5,20}$/i',$_a)){
$b=$c;
}
liyinchen1年前1
xueliaina21 共回答了13个问题 | 采纳率84.6%
if ($a !="10"&&preg_match('/^[a-zd_]{5,20}$/i',$_a)){$b=$c;}
初一英语重点语句
ilovemomoko1年前2
dianaru 共回答了15个问题 | 采纳率93.3%
引导一个表示假设的句子.If I have much money,I will go to the moon.如果我有许多钱,我就会去月球.If you are hungry,you can buy
I eat the fish 被动语句
重庆松鼠1年前4
小牟 共回答了13个问题 | 采纳率92.3%
The fish are eaten by me.
关于fortran goto 语句
关于fortran goto 语句
小白求教:
比如这个语句
go to (210,220,230,240,250,260,270,280),2
逗号后面的数字“2”表示什么意思?
人在千里1年前1
liyi315504 共回答了16个问题 | 采纳率93.8%
写2就是跳到括号里第二个标号,220
修改英语语句,The differences about Chinese perspective of leisure
修改英语语句,
The differences about Chinese perspective of leisure and Western perspective of leisure are mainly in western perspective of leisure would focus on self development
君谬1年前1
wildcall 共回答了20个问题 | 采纳率90%
你好,很高兴能够在这里回答你的问题,这道题的正确答案应该为:
about改为between
the difference between 两者之间的不同
英语语句结构if you want get the most out of a language you must al
英语语句结构
if you want get the most out of a language you must also read for pleasure novels plays travel book and so on 这句话的主语谓语宾语及主句和从句
行路人_cc1年前2
humankuang 共回答了14个问题 | 采纳率100%
If到language是条件状语从句,you是主语,want是谓语get到language是宾语.后面是主句,主语是you,谓语是must read,novels到句末是宾语,for pleasure是状语
sql语句怎么编写下列问题a b c d10 2*1000 30 4411 1*500 31 4412 2*1000 3
sql语句怎么编写下列问题
a b c d
10 2*1000 30 44
11 1*500 31 44
12 2*1000 32 44
13 3*250 33 44
14 4*300 34 44
15 2*1000 35 44
16 2*1000 36 44
如果b从右数4位是1000,那么(d-c)*a/1000
这个语句怎么写
shijingshijing1年前1
jie831125 共回答了21个问题 | 采纳率100%
select a,b,c,d,(d-c)*a/1000 as result from table1
where substring(REVERSE(b),1,4)='0001'
形容黄昏 样子语句
lazysea1年前1
panswang 共回答了17个问题 | 采纳率82.4%
俯瞰小镇的黄昏,宛如天河里坠落了一弯金色的月亮,亲吻着故乡的田园,从炊烟袅袅的村寨里,不时地传来几声狗吠鸡鸣,仿佛是一个遥远、朦胧的梦.  太阳把它最后的光辉照射在林子里一棵棵树枝上,一颗明亮的大星,在蔚蓝的苍穹上闪烁着光芒.黄昏是美丽的,晚霞如同一片赤红的落叶坠到铺着黄尘的地上,斜阳之下的山冈变成了暗紫色,好像云海之中的礁石.  我透过松林的缝隙,望见那夕阳坠落下去,收敛了它的光 彩,然后抛下云朵,独自溜到了地平线上.云朵们不能借助于太阳的美丽光彩来梳妆打扮自己了,色彩由绯红到粉红,渐渐暗淡下去.  一团大火球似的夕阳,终于滚落到西山背后去了,晚霞也收尽了她的最后一抹余辉,天地昏暗下来.  夜幕降临,幽蓝幽蓝的天空中点缀着无数小星星,一眨一眨地,仿佛在邀请人们到广阔的太空去遨游.  暮色像一张灰色的大网,悄悄地撒落下来,笼罩了整个大地.  昏暗的暮霭,渐渐低压下来,天地缝合了,无边无际的麦田由碧绿变成了湛蓝和暗灰.
高中英语作文优秀语句
晴天老猪1年前2
心得阁 共回答了20个问题 | 采纳率95%
1.The most effective means to solve this problem is that ______________.In that case,______________.
2.Everything has its own two sides,no exception with AAA.For one thing,______________.for another,______________.
3.My experience tells me that to ______________ needs a thorough and persevering process,and in this process you had better abide by the principles mentioned above.
4.On the whole,it is high time that we recognized the significance of ______________.
5.As a result,we should take some effective methods to ______________.
6.Judging by the figures,we can draw a conclusion that ______________.
7.In a word,the whole society should pay close attention to the problem of ______________.Only in this way can ______________ in the future.
8.In my opinion,we should place much emphasis on the importance of ______________.
9.But ______________ and ______________ have their own advantages.For example,______________,while ______________.Comparing those two,however,I prefer to ______________.
10.In my opinion,______________ is just as common as ______________.If ______________,it may be very useful.Whatever ______________,the key point lies in ______________.
11.Are their opinions correct?To my mind,the first idea seems ______________.As for the second idea,______________.
12.As a popular saying goes,______________.In my opinion what really counts is not ______________,but ______________.I believer that as long as ______________,we will ______________.So I am for the opinion that ______________.
13.In my opinion,both sides are partly right.When we ______________,we should take into consideration all aspects of the problems,and then make the right decision.
14.Personally,I believe that ______________.Consequently,I鈥檓 confident that a bright future is awaiting us because ______________.
15.In my opinion,all of the people should be brave enough to show our disapproval and criticism when confronted with ______________.
16.People are coming to realize the importance of ______________.They have begun to try their best to ______________.We believe that ______________.
17.All in all,we cannot live without ______________ .But at the same time we must try to find out new ways to cope with problems that would arise.
18.Whatever you do,please remember the saying- ______________.If you understand it and apply it to your study or work,you鈥檒l definitely benefit a lot from it.
19.With the development of society,______________.So it鈥檚 urgent and necessary to ______________.If every member is willing to contribute himself to the society,it will be better and better.
20.It is difficult to say whether ______________ is good or not in general as it depends very much on the situation of ______________.However,from a personal point of view I find ______________.
21.It is essential that effective actions should be taken to end the situation.
22.It is no doubt that special attention must be paid to the problem of ______________.
23.But both ______________ and ______________ have disadvantages.For example,______________.Which to choose,______________ or ______________?Careful consideration is necessary before you make your own choice.
24.From what has been discussed above,we may reasonably arrive at the conclusion that ______________.
25.We must search for a quick action,because the present situation of ______________ is grievous,if allowed to proceed,will certainly lead to ______________.
26.No doubt,if we ignore the problem,there is every chance that ______________ will be put in danger.
27.We need to take a second look at the matter from a wider standpoint,otherwise,we won鈥檛 ______________.
28.It is high time that ______________.Here are some of the measures that might be taken immediately.29.In conclusion,we should know about the problem of ______________,and object to ______________.Only in this way ______________.
30.Although it is affected by many factors,still there are certain ways that can make the situation better.The most import is ______________.Another way is ______________.Still another one is ______________.
31.Many solutions are offered here,all of them make some sense,but none is adequate enough.The problem should be studied in depth.
32.No easy method can be at hand to solve the problem of ______________.But the common recognition of the importance of ______________ might be the first step on the right way.
33.It is clear,therefore,that the task of ______________ demands great attention.
34.We may have a long way to go before we reach the final goal.But once we are on the way,the chance to reach it is greater.
35.But for me,I would rather think of the matter in an optimistic way.Because I believe ______________.
36.We all know the story of ______________.this lesson tells us that ______________,we should ______________.
37.My own point of view is that ______________ is a normal behavior in our society.There is no doubt that ______________.As an old saying goes,______________.
38.If we can鈥檛 take useful means,we may not control this trend,and some undesirable result may come out unexpectedly,so what we should do is ______________.
39.However,this graph may not predict the entire situation in the future.I believe ______________.
40.From the graph it is evident that ______________.
41.From all the reasons above,we know that great changes had taken place in ______________.And I believe that ______________.
42.Taking into account all of these factors,we may reach the conclusion that ______________.
43.For the reasons given above,I strongly recommend that ______________.
44.Given the factors I have just outlined,I believe that ______________.
45.Therefore,it is not difficult to draw the conclusion that ______________.
46.Recognizing the fact that ______________ should lead us to conclude that ______________.
47.In short,I support the statement that it is better to ______________ because ______________.
48.After pondering this question on many occasions,I have finally reached the conclusion that ______________ is something I truly want to do and it is worthwhile.
49.My point of view in ______________ largely results from the fact that ______________.
50.Now after close examination,it is not difficult to draw the conclusion that ______________.
51.From what has been discussed above,you can get your preference.Personally,I think ______________ has more advantages.
52.On the one hand,it has helped china ______________.On the other hand,it has increased china鈥檚 ______________,and at the same time,made great contributions to our national development.
53.In my opinion,to solve this problem there might be two ways.One way to tackle this question is ______________.Another way that is worth adopting is ______________.
54.As far as I am concerned,I trust the advantages mentioned above exceed the disadvantages.
55.For me,______________ is a glory and it is the most important thing I have to take into feasible consideration.
56.As regards me,I tend to pick ______________,for ______________.What鈥檚 more,______________.
57.If I were given a choice between ______________ and ______________,I would certainly prefer ______________.For me,______________.
修辞手法精美语句摘抄
如烟如雾girl1年前1
hobbho 共回答了16个问题 | 采纳率87.5%
排比句:
心灵是一方广袤的天空,它包容着世间的一切;心灵是一片宁静的湖水,偶尔也会泛起阵阵涟漪;心灵是一块皑皑的雪原,它辉映出一个缤纷的世界.
谎言是一只心灵的蛀虫,将人的心蛀得面目全非;谎言是一个深深的泥潭,让人深陷其中无法自拔;谎言是一个无尽的黑洞,让人坠入罪恶的深渊万劫不复.
自私是一面镜子,镜子里永远只看得到自己;自私是一块布匹,蒙住了自己的眼睛,看不见别人的痛楚;自私是一层玻璃,看上去透明,却始终隔开了彼此的距离.
鱼的归宿是大海,鸟的归宿是森林,流浪者的归宿是家,花儿的归宿是草坪,树的归宿是土地,动物的归宿是大自然.
爱心是一股甜甜的泉水,使不幸的人忘记生活的苦涩;爱心是一首动听的歌谣,使生活枯燥的人感到生活的乐趣;爱心是一眼潺潺流动的泉水,使饥渴的行人感到人生旅途的甘甜;爱心是一首优扬动听的歌谣,使踽踽独行的人感到人生的美好;爱心是一股流淌在心头的泉水,使沉浸在痛苦中的人们感到人间的甘甜.
爱心是一曲回荡在耳边的歌谣,使孤独的人们感到人间的温暧;爱心是一股撞开冰闸的春水,使铁石心肠受到震撼;爱心是一座亮在黑夜的灯塔,使迷途航船找到港湾.
爱心是一瓢纷洒在春天的小雨,使落寞孤寂的人享受心灵的滋润;爱心是一泪流淌在夏夜的清泉,使燥热不寐的人领略诗般的恬静;爱心是一柄撑起在雨夜的小伞,使漂泊异乡的人得到亲情的荫庇.
爱心是一道飞架在天边的彩虹,使满目阴霾的人见到世界的美丽;爱心是一杯泼洒在头顶的冰水,使高热发昏的人得能冷静地思索;爱心是一块衔含在嘴里的奶糖,使久饮黄连的人尝到生活的甘甜.
关爱是一个眼神,给学生无声的祝福;关爱是一缕青风,给学生身心的舒畅;关爱是一场春;雨,给学生心田的滋润;关爱是一句问侯,给学生春天的温暖.
如果说爱是三月淅沥的春风,感恩就是小草吐露的新绿;如果说爱是初夏生机的日光,感恩就是材木成长的浓绿;如果说爱是冬日洁白的雪花,感恩就是颗粒饱满的小麦.
您不是雨露,却带来了新生的希望;您不是泉水,却带来了生命的甘甜;您不是太阳,却带来了人间的温暖.
如果你是一棵大树,就撒下一片阴凉;如果你是一泓清泉,就滋润一方土地;如果你是一棵小草,就增添一分绿意.
如果你是一朵鲜花,就点缀一角夜空;如果你是一片白云,就装扮一方晴空;如果你是一只蜜蜂,就酿造一份甜蜜.
如果你是一缕阳光,就照亮所有黑暗;如果你是一丝清风,就吹走世间的尘埃;如果你是一阵春风,就吹绿田野的庄稼.
如果说人生是一首优美的乐曲,那么痛苦则是其中不可或缺的音符;如果说人生是一望无际的大海,那么挫折则是一个骤然翻起的浪花;如果说人生是一片湛蓝的天空,那么失意则是一朵漂浮的淡淡的云.
比喻句:
她脸色阴暗得像夏季乌云满布的天空一样,随时都会雨点似的落下泪来.
他的脸像刷上了一层白灰,煞白煞白的.嘴唇抖动着,似乎还想说什么,可终于什么也没说出来.
他那双眼睛像拉开了闸门,泪水止不住地流了出来.
远处的霓虹灯亮了,像一道亮丽的彩虹,像仙女飘舞的裙带,像一座七彩小桥,像一朵朵耀眼,绚丽的云.
梦像一片雪花 ,在空中飘舞,想抓住他,他已经融化了.
美丽的彩虹就像一座七彩的桥一样高挂在雨后的天空.
云彩像一朵朵洁白的羽毛,轻轻的飘浮在空中.
东方天边的彩霞时刻在变幻,如霜枫,如榴火,如玛瑙,如琥珀.
幸福是染色的画笔,能染红鲜花,也能染绿树叶;能给清澈的湖水染上透明的质感,也能给纯洁的心灵涂抹一层辉煌.
幸福是迎面的清风,能吹来落叶,也能吹走沙砾;能在广阔的大海吹荡起一波涟漪,也能拂走心中所有幸福是暖炉,能融化坚固的冰块,给寒冷的人以温暖,给失魂落魄的人以安慰;幸福是清泉,能滋润干燥的沙漠,给饥渴的人以清凉,给奄奄一息的人以生命.
鹅毛,像芦花,像棉絮的大雪降落下来.
皎洁的明月高挂在淡蓝色的天空中,月光像流水一样泻下来,大地一片银白色.
花越开越密,越开越盛,不久便挂满了枝头.走近看,仿佛是一个个活泼的小喇叭,正鼓着劲儿在吹呢.
火红的枫叶像火花一样纷纷地飘落下来.
这一朵朵菊花,远看像一个个色彩鲜艳的绣球,近抚好似一匹匹细腻的丝绸.
拟人句:
风儿清唱著歌,唤醒了沉睡中的大地.
顽皮的雨滴最爱在雨伞上尽情的跳舞.
秋天到了,树上金红的果子露出了笑脸,她在向着我们点头微笑.
巨浪伸出双臂把我猛地托起.
油蛉们在这里低唱,蟋蟋们在这里弹琴.
花儿在风中笑弯了腰.
夜空中的小星星眨着眼睛,似乎对你微笑.
水是野的,索溪像是一个从深山中蹦跳而出的野孩子,一会儿缠绕着山奔跑,一会儿撅着屁股,赌着气又自个儿闹去了.
月亮一露面,满天的星星惊散了.
蜡炬成灰泪始干.
反问句:
飞蛾那种求生的欲望不令我震惊吗?
难道你不担心吗?
难道不是吗?
难道你认为没有这样一回事?
人难道可以长生不老吗?
难道数学真的这么难么?
我们用什么来面对我们的子孙后代?
这不是呆气的表现吗?
谁曾因为太阳本身有黑点就否认它的灿烂光辉呢?
难道贝多芬不伟大吗?
人生哲理名言语句-经典哲理句子
ff闲人1年前2
xsxue 共回答了11个问题 | 采纳率90.9%
1,记住该记住的,忘记该忘记的.改变能改变的,接受不能改变的.
2,能冲刷一切的除了眼泪,就是时间,以时间来推移感情,时间越长,冲突越 淡,仿佛不断稀释的茶.
3,怨言是上天得至人类最大的供物,也是人类祷告中最真诚的部分.
4,智慧的代价是矛盾.这是人生对人生观开的玩笑.
5,世上的姑娘总以为自己是骄傲的公主(除了少数极丑和少数极聪明的姑娘例外).
6,如果敌人让你生气,那说明你还没有胜他的把握.
7,如果朋友让你生气,那说明你仍然在意他的友情.
8,令狐冲说“有些事情本身我们无法控制,只好控制自己.”
9,我不知道我现在做的哪些是对的,那些是错的,而当我终于老死的时候我才知道这些.所以我现在所能做的就是尽力做好待着老死.
10,也许有些人很可恶,有些人很卑鄙.而当我设身为他想象的时候,我才知道:他比我还可怜.所以请原谅所有你见过的人,好人或者坏人.
11,鱼对水说你看不到我的眼泪,因为我在水里.水说我能感觉到你的眼泪,因为你在我心里.
12,快乐要有悲伤作陪,雨过应该就有天晴.如果雨后还是雨,如果忧伤之后还是忧伤.请让我们从容面对这离别之后的离别.微笑地去寻找一个不可能出现的你!
13,死亡教会人一切,如同考试之后公布的结果——虽然恍然大悟,但为时晚矣~!
14,你出生的时候,你哭着,周围的人笑着;你逝去的时候,你笑着,而周围的人在哭!一切都是轮回! 我们都在轮回中!
15,男人在结婚前觉得适合自己的女人很少,结婚后觉得适合自己的女人很多.
16,于千万人之中,遇见你所遇见的人;于千万年之中,时间的无涯荒野里,没有早一步,也没有晚一步,刚巧赶上了 .
17,每个人都有潜在的能量,只是很容易:被习惯所掩盖,被时间所迷离,被惰性所消磨.
18,人生短短几十年,不要给自己留下了什么遗憾,想笑就笑,想哭就哭,该爱的时候就去爱,无谓压抑自己.
19,《和平年代》里的话:当幻想和现实面对时,总是很痛苦的.要么你被痛苦击倒,要么你把痛苦踩在脚下.
20,真正的爱情是不讲究热闹不讲究排场不讲究繁华更不讲究嚎头的.
21,生命中,不断地有人离开或进入.于是,看见的,看不见的;记住的,遗忘了.生命中,不断地有得到和失落.于是,看不见的,看见了;遗忘的,记住了.然而,看不见的,是不是就等于不存在?记住的,是不是永远不会消失?
22,我们确实活得艰难,一要承受种种外部的压力,更要面对自己内心的困惑.在苦苦挣扎中,如果有人向你投以理解的目光,你会感到一种生命的暖意,或许仅有短暂的一瞥,就足以使我感奋不已.
23,我不去想是否能够成功,既然选择了远方,便只顾风雨兼程;我不去想,身后会不会袭来寒风冷雨,既然目标是地平线,留给世界的只能是背影.
24,后悔是一种耗费精神的情绪.后悔是比损失更大的损失,比错误更大的错误.所以不要后悔 .
25,日出东海落西山,愁也一天,喜也一天;遇事不钻牛角尖,人也舒坦,心也舒坦.
matlab,ify语句绘制分段图形,x^2-1(x>=1) 0(-1
itoo1年前0
共回答了个问题 | 采纳率
根据语句写出成语1.到处流浪( )
rivy5201年前7
hz2008 共回答了18个问题 | 采纳率88.9%
应该是“四海飘零”.
四海飘零:到处漂泊,生活无着.
四海为家:志在四方,不留恋家乡或个人小天地.
初中英语语句改写!1.I think she will be a doctor in five years (engin
初中英语语句改写!
1.I think she will be a doctor in five years (engineer)
2.i will play the guitar in then years (violin)
3.she had a cat five years ago (rabbit)
4.she studies in college today (high school)
分加改写成
否定句,疑问句,问句,选择疑问句!
没积分了.不好意思.
做男人真难1年前6
宿舍墙角 共回答了15个问题 | 采纳率86.7%
1.I think she will be a doctor in five years (engineer)
i don't think she will be a doctor in five years.
Do you think she will be a doctor in five year?
Do you Do you think she will be a doctor or an engineer in five year?
2.i will play the guitar in then years (violin)
I will not play the guitar in ten years.
Will you play the guitar in ten years?
Will you play the guitar or the violin in ten years?
3.she had a cat five years ago (rabbit)
She didn't have a cat five years ago.
Did she have a cat five years ago?
Did she have a cat for a rabbit ive years ago?
4.she studies in college today (high school)
She doesn't study in college today.
Does she study in college today?
Does she study in college or in hign school today?
好累啊,给点积分把
分析英语重点语句1.It would be fun to go out2.Shall I bring you some
分析英语重点语句
1.It would be fun to go out
2.Shall I bring you some water?
3.They live in large nests where each each ant has a job to do.
要求:
1 句子意思
2 句子时态,结构,语法
3 第一句重点解释 would
第二句重点解释 Shall I
第三句重点解释 where
重点解释这些单词在这些句子中的作用
ii飘01年前1
scy1978 共回答了24个问题 | 采纳率91.7%
1 出去玩将是很有趣的事!2 这是一个情态动词引导的一般疑问句.只是将Shall 提到句首.把他还原一下你就可以明白 I Shall bring you some water.把他边成疑问句就成了题的样了 他是 一般现在时.3 这是一个定语从句,whe...
英语语句 I was wondering what are the work hours
英语语句 I was wondering what are the work hours
I was wondering what are the work hours?跟 I was wondering what the work hours are
这两句话语法的区别,意思的区别
令一1年前3
弄我撒 共回答了19个问题 | 采纳率84.2%
两句都是宾语成句,不过第二句更常用.
I was wondering what are the work hours?我想知道什么是工作时间.就是问工作时间的概念.
I was wondering what the work hours are 我想知道工作时间都是什么.是问从几点开始上班,到几点下班.