精华内容
下载资源
问答
  • 我为什么不放弃博客园使用简书 Why I donot give up cnblogs for Jianshu Chapter0 从2016年8月开始接触简书开始,就有些喜欢上简书了,因为简书支持 markdown 语法,相比之下,博客园虽然也有一个支持 markdown ...

    我为什么不放弃博客园使用简书 Why I donot give up cnblogs for Jianshu

    Chapter0

    从2016年8月开始接触简书开始,就有些喜欢上简书了,因为简书支持 markdown 语法,相比之下,博客园虽然也有一个支持 markdown 的编辑器, 但是相对来说简直没法用,而从接触 markdown 之后越来越喜欢 markdown 的简洁语法,后来便遇到了简书。

    想学习 Markdown 的话,可以参考我总结的 markdown 语法简介(包含了 Github 支持的语法),

    现在我的博客更新模式是这样的:

    本地用 markdown 写好博客,发布到简书,再用自己造的一个轮子 Markdown2HtmlTool 将 markdown 转换为 html 文本,再到博客园输入编辑器的html源码,更新html之后发布看一下效果,如果有显示异常的部分则略加修改。

    Chapter1

    因为 markdown 我喜欢在简书上发东西,但是为什么我不放弃使用博客园呢?

    1. 博客园可以自定义自己博客的风格,相比之下,只要用心你可以让你的博客与众不同
    2. 博客园是一个有影响力的地方,做开发相关的人一定都知道博客园,自己平时遇到的许多问题也是在博客园上找到解决方案的
    3. 之前与博客园的工作人员沟通,博客园预计三月份会推出全新的 markdown 编辑器,期待博客园全新的 markdown 编辑器

    Chapter2

    再说简书,简书虽然说对markdown支持的比较好,而且支持打赏(这里想吐槽一下,简书的打赏提现是有5%的手续费的而且每次最小提现金额是100)。 相比博客园,我自己的账号自己的主页是没有什么可自定义的东西,自己的自主权较少,这里是相对并不太喜欢的地方。另外简书上的文章很多,种类繁多,有时候需要自己有比较好的过滤能力,否则就会很容易陷入信息爆炸中去。

    Chapter3

    总之,简书和博客园各有千秋,根据自己的需求选取。

    对我来说在博客园发布新版 markdown 编辑器之前,我都会继续更新简书,如果 博客园的新版 markdown 编辑器表现良好,我可能会完全回到博客园。

    展开全文
  • <p>found the place where it was i dont no why it dont work nyheder ( meaning news ) <pre><code><div class="container"> <h2>Nyheder</h2> <div class="row"> <?php $...
  • 语法错误Sql / PHP

    2016-04-11 22:29:47
    <p>The thing is that I don't get why is that error I'm getting and why is it wrong or why the LIMIT is not getting accepted. <p>This is the sql sentence I'm echoing, (seems pretty good to me): <p><a...
  • php和twig语法

    2013-03-28 02:04:58
    Why is this? <pre><code>"<%= '/profile/'+item.get('shop').owner.username %>"> </code></pre> <p>When I do the following: <pre><code> "<%= '/profile/'+item.get('shop').name %>"> ...
  • <p>I'm using cakephp and php 5.3 and just recently I keep getting this weird error i'm not sure why : <p>Error: syntax error, unexpected T_STRING, expecting T_FUNCTION File: /Applications/AMPPS/...
  • <p>First, I do not understand why I need to redeclare the underlying array redundantly, and it does seem golang compiler knows the type because it gives an error if I change it. But, why can I not ...
  • <p>I am a beginner to PHP and I am working on a profile page. The current problem is to change the name (This is a trial page that's why i am changing the name).For some reason i am getting the error:...
  • <p>Not sure why I'm getting <code>pq: syntax error at or near "limit"</code>. I'm assuming the combined query is wrong. Why does the query not end up being something like <code>select * from posts ...
  • 2012届高考英语语法专题复习单项选择详解试题 2小时前  [b]2012[/b][b]届高考... 1.-----The film is, I have to say, not a bit interesting.  ------Why? It’s ______ than the films I have ever see...
    2012届高考英语语法专题复习单项选择详解试题 
    2小时前
      [b]2012[/b][b]届高考英语语法专题复习单项选择详解试题[/b][b][/b]
      1.-----The film is, I have to say, not a bit interesting.
        ------Why? It’s ______ than the films I have ever seen.
        A. far more interesting    B. much less interesting
        C. no more interesting    D. any less interesting
      答案与解析:not a bit 一点儿都不。根据句中的than可知,此处应用形容词的比较级,而interesting为多音节词,比较级在前面加 more,如表示比较程度,则在其前面加far。选A项。
      2.―How is your recent trip to Sichuan?
       ―I’ve never had __________one before.
        A. a pleasant       B. a more pleasant
        C. a most pleasant    D. the most pleasant答案与解析:本题考查形容词比较级的用法。否定词加比较级往往表示最高级的概念。句意为:你的四川之行怎么样?――再好不过了。选B。
      3. Mr. Stevenson is great to work for----I really couldn't ask for a _____ boss.
        A. better    B. good    C. best    D. still better答案与解析:本题考查比较级用法。“cannot/couldn’t ...+比较级”表示最高级含义。根据前半句可知,Stevenson是一个不错的老板,因此说“因此找不到比他更好的老板了”,表示他是最好的老板。
      4.The new stadium being built for the next Asian Games will be_________the present one。
        A. as three times big as     B. three times as big as
        C. as big as three times     D. as big three times as答案与解析:本题考查同级比较及其修饰语的位置关系。英语中,如果比较级有自己的修饰词语,应当是“修饰词语(数量词或副词)+as (so)...as...”或“修饰词+比较级”。
      5.She has tried her best. Please don’t be too ______ about her job.
        A. special    B.responsible    C. unusual    D. particular
      答案与解析:句意为:她已经尽力了,别对她的工作太挑剔。special特殊的;responsible负责人的;unusual不同寻常的。be too particular about 对……太挑剔(讲究),符合句意,答案为D项。
      6. The old engineer’s eyes still shone bright in the wrinkled brown face and his step as he came across the room was________,though slow.
        A. shaky    B. heavy    C. casual    D. steady
      答案与解析:根据句意可知,老工程师的步伐虽然缓慢但是“沉稳”。shaky颤抖的;heavy沉重的;casual非正式的,漫不经心的;均不符合句意。
      7. An unhappy childhood may have some negative effects on a person’s characters however, they are not always_________.
        A. practical     B. avoidable
        C. permanent     D. beneficial
      答案与解析:句意:不幸的童年可能对人的性格有些负面影响,但是这些影响不总是……。填入的内容应该和前半部分形成转折意义,permanent(永久的)符合句意。practical切合实际的;avoidable可避免的;beneficial有利的。
      8. The state-run company is required to make its accounts as_________ as possible for its staff to monitor the use of money.
        A. transparent    B. reasonable    C. securer    D. format
      答案与解析:句意:国有企业被要求把账目尽量……以便让员工监督资金的使用情况。从目的状语判断,只有账目transparent(透明的)才有利于监督。reasonable合理的;secure安全的;formal正式的;均不符合题意。
      9. In that school, English is compulsory for all students, but French and Russian are _________.
        A.special     B.regional
        C.optional     D.original
      答案与解析:根据句意和句中的compulsory(强制的)可知,应选择和它的词义相对的optional(可选择的),其他选项均不符合题意。
      10. The professor could tell by the _______look in Maris's eyes that she didn’t understand a single word of his lecture.
        A. cold    B. blank    C. innocent    D. fresh
      答案与解析:本题考查形容词辨析。语意:那个教授从Maria茫然的眼神中看出他的讲座她一个字也听不懂。blank在句中表示“茫然的,不理解的”。
      11. My schedule is very _____right now, but I'll try to fit you in.
        A. tight    B. short    C. regular    D. flexible
        答案与解析:根据语意“我的安排很紧……”可知,这里选tight表示“紧的”。short短的;regular 有规律的;flexible灵活的;都不符合句意。
      12. 30.Nowedays,_____________increase in children’s creativity, for they are greatly encouraged to develop their talents.
        A. sharp    B. slight    C. natural    D. modest
      答案与解析:当今,孩子的创造力急剧提高,因为他们被鼓励去发展个人才能。sharp急剧的;slight轻微的;natural自然而然的;modest谦虚的。从句中的因果关系看,sharp符合题意。
      13. It is one thing to enjoy listening to good music, but it is ______another to play it well yourself.
        A. quite    B. very    C. rather    D. much
        答案与解析:本题考查副词及其搭配。句意为:喜欢听好音乐是一回事,但你眼中得好完全是另外一回事。quite another表示“完全不同”。
      14. I've been writing this report ____for the last two weeks, but it has to be handed it tomorrow.
        A. finally    B. immediately    C. occasionally    D. certainly
      答案与解析:本题考查副词辨析。根据语意“这两个星期来我偶尔写写这个报告,但明天必须上交”判断,这里用occasionally(偶尔)符合语境。finally最终;immediately立即;certainly当然;不符合语意。
      15. To be great, you proper must be smart, confident, and, ______, honest.
        A. therefore    B. above all    C. however    D. after all
      答案与解析:本题考查副词辨析。句意为:要想优秀,你必须聪明自信,更重要的是诚实。above all首先,最重要的是,符合句意。therefore因此,于是;however然而;after all 毕竟。
      16. _____, I managed to get through the game and the pain was worth it in the end.
        A. Hopefully    B. Normally    C. Thankfully    D. Conveniently
      答案与解析:本题考查副词辨析。根据句中“manage to do”可知事情已经办成功了,从语气上判断,Thankfully(幸亏,表示高兴或宽慰)最贴切
      17.On the next birthday, Ann___________married for twenty years.
        A. is    B. has been    C. will be    D. will have been
      答案与解析:选D。根据句意可知,动作在将来某一时刻(她下一个生日时)会完成,故用将来完成时。
      18. In the last few years, thousands of films __________all over the world.
        A. have produced     B. have been produced
        C. are producing     D. are being produced
      答案与解析:选B。根据前面的时间状语in the last few years可知,应用现在完成时,且film和produce之间是动宾关系,故用现在完成时的被动语态。
      19.We hurried to work in the morning and found that somebody _____ into the office during the night.
        A. broke       B. had broken
        C. has broken    D. was breaking
      答案与解析:选B。空格处的动作发生在found之前,故用过去完成时。句意:早晨我们来上班,发现有人晚上闯入过办公室。
      20. She was surprised to find the fridge empty; the child _____ everything!
        A. had been eating    B. had eaten    C. have eaten    D. have been eating
      答案与解析:选B。考查时态。第一句是一个过去的语境,而第二句则表示在一句的动作发生之前已经完成的一个动作,所以要用过去完成时态。
      21. ―That must have been a long trip.
        ―Yeah, it ___________us a whole week to get there.
        A. takes    B. has taken    C. took    D. was taking
      答案与解析:选C。考查时态,题干中must have done是对过去的肯定推测,因此提示时间在过去,选择一般过去时。
      22. Experiments of this kind ______________in both the U.S. and Europe well before the Second World War.
        A. have conducted     B. have been conducted
        C. had conducted     D. had been conducted
      答案与解析:选D。考查时态和语态,首先考虑语态,主语experiment与位于conduct构成动宾关系,谓语使用被动形式。题干中出现the second war是过去的时间点,before the second war是过去的过去,因此使用过去完成时。
      23.Look at the pride on Tom’s face. He___________to have been praised by the manager just now.
        A. seemed    B. seems    C. had seemed    D. is seeming
      答案与解析:选B。根据第一句的内容可知,叙述的是现在的情况,此处seem表示“似乎”,是系动词,不用于进行时,排除D项选B项。
      24. ―Bob has gone to California.
        ―Oh, can you tell me when he ____________?
        A. has left    B. left    C. is leaving    D. would leave
      答案与解析:选B。考查时态,时态Bob已经去了加利福尼亚,说你他离开的动作发生在过去,因此使用一般过去时。
      25. All visitors to this village _________ with kindness.
        A. treat    B. are treated    C. are treating    D. had been treated
      答案与解析:选B。句子的主语all visitors是动词treat的承受者,构成逻辑上的动宾关系,所以用被动语态。此处介绍的是一般事实,故用一般现在时。
      26.Tom___________in the library every night over the last three months.
        A. works    B. worked    C. have been working    D. had been working
      答案与解析:选C。题干中出现明显的over the last three months,用于现在完成进行时或现在完成时。
      27.―What a mistake!
        ―Yes. I ___________his doing it another way, but without success.
        A. was suggesting  B. will suggest    C. would suggest  D. had suggested
      答案与解析:选D。过去完成时表示在过去某一个动作之前已经发生或者完成的动作。根据句意,“建议”这一动作发生在“犯错误”之前,用过去完成时。
      28. That price of music sounds quite familiar. Who _________the piano upstairs?
        A. has played    B. played    C. plays    D. is playing
      答案与解析:选D。第一句提到,那首乐曲听起来非常熟悉,因此可知楼上有人“正在”弹奏钢琴,用现在进行时。
      29. His first novel________good reviews since it came out last month.
        A. receives    B. is receiving    C. will receive    D. has received
      答案与解析:选D。since引导的时间状语从句用一般过去时,其主句用现在完成时,故选择D项。
      30.Last month, the Japanese government expressed their thanks for the aid they___________From China.
        A. receive    B. are receiving    C. have received    D. had received
      答案与解析:选D。时间状语为last month,且受到帮助应该在表达感谢之前,表示“过去的过去”,用过去完成时。
      31. I'll go to the library as soon as I finish what I __________.
        A. was doing    B. am doing    C. have done    D. had been doing
      答案与解析:选B。句意为:我一做完正在做的事情就去图书馆。由此可知事情正在做,用现在进行时。
      32. By the time Jack returned home from England, his son. _______from college.
        A. graduated     B. has graduated
        C. had been     D. had graduated
      答案与解析:选D。by the time(到……时候)引导时间状语从句,如果从句的谓语为一般过去时,主句的谓语为过去完成时。
      33.----Joan, what ______ in your hand?
        -----Look! It’s a birthday gift for my grandma.
        A. had you held   B. are you holding    C. do you hold  D. will you hold
      答案与解析:选B。根据答语中的look可知,“拿”的动作正在进行,故用现在进行时。句意:――Joan, 你手里拿的是什么?――看看,这是我给奶奶买的生日礼物。
      34------I hear you ____ in a pub. What’s it like?
        ------Well, it’s very hand work and I’m always tired, but I don’t mind.
        A. are working    B. will work    C. were working    D. will be working
      答案与解析:选A。根据答语it’s very hand work and I’m always tired可知,答话人现阶段正在一家酒馆上班,因此用现在进行时。
      35.-----Tommy is planning to buy a car.
        ----I know .By next month ,he __ enough for a used one.
        A. saves    B.saved    C. will save    D. will have saved
      答案与解析:选D。根据句中的时间状语by next month可知,到下个月他将会积赚足够的钱,因此应用将来完成时。
      36.Planning so far ahead ___________no sense-so many things will have changed by next year.
        A. made    B. is making    C. makes    D. has made
      答案与解析:选C。此题翻译为“那么提前的计划没有意义――如此多的事情到明年会发生改变。”此题中so far修饰ahead,表示“那么”。make no sense对是表示主语planning的客观描述。此题容易误选为D。学生误以为so far在这里是到目前为止的意思。所以答案为C。
      37.I wasn’t sure if he was really interested or if he___________polite.
        A. was just being    B. will just be    C. had just been  D. would just be
      答案与解析:选A。此题翻译为“我不确定是否他真的感兴趣,或者是否只是出于礼貌。”从前面的wasn’t判断整句话的动作应该发生在过去,排除B。C项是过去完成时,需要发生在过去的过去。D项是过去将来时,要立足过去,着眼未来。此题“出于礼貌”和“感兴趣”两动作同时发生,而说话人要强调“当时”的概念,所以答案为A,过去进行时。
      38.When Alice came to, she did not know how long she___________there.
        A. had been lying    B. has been lying    C. was lying    D. has lain
      答案与解析:选A。此题考查时态知识。翻译为“当Alice进来的时候,她不知道已经在这里躺多久了。”通过含义可以发现,“躺”这个动作发生在came之前,发生在过去的过去,应该用过去完成时。又因为作者强调“一直”这个概念,故答案为A,过去完成进行时。
      39.The manager was worried about the press conference his assistant _____in his place but ,luckily ,everything was going on smoothly.
        A. gave    B. gives    C. was giving    D. had given
      答案与解析:选C。从语意“经理很担心现在助手正替代他参加的新闻发布会……”可知give的动作和was worried的动作是同时进行的,根据语意用过去进行时。
      40. In 1942 Columbus_______ on the of the Bahama islands, but he mistook it for an island off India.
        A. lands    B. landed    C. has landed    D. had landed
      答案与解析:选B。根据前面的时间状语in 1492可知,此处应用一般过去时态。
      41. It is the most instructive lecture that I ________since I carne to this school.
        A. attended    B. had attended    C. am attending    D. have attended
      答案与解析:选D。根据后面的时间状语since I came to this school可知,此处应用现在完成时态。句意:这是我到这个学校以来听过的最有教育意义的演讲。
      42. In the near future, more advances in the robot technology ______ by scientists.
        A.are making    B. are made    C. will make    D. will be make
      答案与解析:选D。根据时间状语in the near future可知,此处应用一般将来时。make和more advances之间是动宾关系,故用被动语态。
      43. ― What do you think of store shopping in the future?
        ―Personally, I think it will exist along with home shopping but _____.
        A. will never replace      B. would never replace
        C. will never be replaced    D. would never be replaced
      答案与解析:选C。 答话人认为商店购物与家庭购物并存,但是永远不会被取代。it与replace之间是被动关系,再结合本句的时态will exist可知,此处应用一般将来时的被动语态。
      44. ―I didn’t ask for the name list. Why ______on my desk?
        ―I put it there just now in case you needed it.
        A. does it land     B. has it landed
        C. will it land     D. had it landed
      答案与解析:选B。问话人质疑的是名单为什么在自己的书桌上,此处强调的是对现在造成的结果或者影响,所以用现在完成时。
      45.When I got on the bus, I_____ I had left my wallet at home.
        A. was realizing    B. realized    C. have realized    D. would realize
      答案与解析:选B。 考查时态。 When引导时间状语从句,表示的是过去某一时刻,所以用一般过去时态。
    展开全文
  •  147 need not , must not 和 must 用于现在时和将来时  148 need 的各种形式  149 表示无义务的各种形式 但是,关于 neednt 在间接引语中的用法,参见上面第 148 节 C 。  150 need not 与其他各种形式的...
  • <p>Im not sure why am I getting this syntax error. <pre><code>Parse error: syntax error, unexpected '{' in /var/www/test/db.php on line 13 </code></pre> <p>The code seems fine to me... Can anyone ...
  • <p>Warning: PDOStatement::execute(): SQLSTATE[42000]: Syntax error or ...<p>I get that error, I'm not sure why, any help would be great all my tables are named correctly to my knowledge </div>
  • <p>but why have an extra parameter list just for the "receiver", as I think it's called? Would it not be a simpler and more elegant design to just do <pre><code>func Foo(s *SomeStruct, x int) { } ...
  • <p>This question already has an answer here: ...<p>I tried to edit the code myself and tried to fix it using several syntax help websites. ...<p>I am not sure why I get the error message. </div>
  • <p>Which is the correct syntax for is not equal to operator <p>this -> != <pre><code>if($ses_startdate !...== earlier and it worked without any problem but not it is ... why is that? </div>
  • <p>Am I allowed to put single quoted, double quoted heredoc syntax or nowdoc syntax strings directly into functions whose parameters require a string like for example <code>...<p>If not why? </div>
  • <p>Do you have any idea why i get this: <pre><code>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '``, `title` ...
  • Obviously it is actually an <code>array, but I have not worked out why this is.. <p>Controllers are posted below. <h1>Code <p><code>AdminImportPlayersController@store</code>: <pre><code>/** * ...
  • <p>I get this error: <p>exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax;...<p>Why? </div>
  • 在PHP中, 为什么不产生语法解析错误

    千次阅读 2012-12-19 10:50:45
    英文原文:In PHP, why does not show a parse error? 中文译文:在PHP中, 为什么不产生语法解析错误 PHP作为主流网站建设语言,在使用过程中有很多陷阱,需要程序员主意。 在PHP脚本中,如果写如下代码 ...

    英文原文:In PHP, why does </script> not show a parse error?

    中文译文:在PHP中, 为什么</script>不产生语法解析错误

    PHP作为主流网站建设语言,在使用过程中有很多陷阱,需要程序员主意。

    在PHP脚本中,如果写如下代码

    <?php 
        </script>
    ?>

    这个php脚本并没有提示任何错误,而是直接输出了 "?>"。感觉很不可思议,于是我们再写如下代码

    <?php 
        </div>
    ?>

    这次却提示解析错误,Parse error: syntax error, unexpected '<' in ... 

    为什么第一次的</script>不提示错误呢?

    这时我们需要再仔细阅读一下PHP的相关手册了 there are various ways of starting a block of PHP code:

    可以在 PHP 中使用四对不同的开始和结束标记。其中两种,<?php ?> 和 <script language="php"> </script> 总是可用的。另两种是短标记和 ASP 风格标记,可以在 php.ini 配置文件中打开或关闭。尽管有些人觉得短标记和 ASP 风格标记很方便,但移植性较差,通常不推荐。

    也就是所,php的标签有4中,而<script>也是其中之一,并且和<?php ?>一样,总是可用的,其他的两种需要在配置文件中打开。

    1. <? ... ?> (在配置文件中通过short_open_tag打开)
    2. <?php ... ?> 
    3. <script language="php"> ... </script> 
    4. <% ... %> (ASP风格标签,在5.3.0版中放弃使用)
    展开全文
  • I have tried everything and can not figure out why this is. I have tried adding backticks, single quotes etc around $value on its own, and around both $value and $key but nothing seems to work. ...
  • $errors[] = 'that\'s not a valid email address'; } if(ctype_alpha($name) === false) { $errors ='name must only contain letters'; } } if (empty($errors) ===true) { mail('talrod...
  • <p>I am trying to get the data from database and use it in a condition in the if statement but its not working. and i can't figure out why. Please help me. The one i am trying is this and it doesn't ...
  • <p>I am using a simple implementation of Syntax Highlighter ...<p>Not sure why is this happening. I am not pasting the source code for the file; you can do a Ctrl+U on the link. <p>Thanks :) </div>
  • <p>This my function, I do not know why there is a problem. <p>Parse error: syntax error, unexpected 'echo' (T_ECHO) in D:\OSPanel... <pre><code><?php function set_gallery($type_filter) { ?> &...
  • but i cannot figure out why? <pre><code><?php $con = mysqli_connect("localhost","","",""); if (!$con) { echo" Not connected to database"; die('Could not connect: ' . mysqli_error()); } if(is...
  • <p>I want to remove syntax error from a php script file. After hour of checking i could not remove them, How could be these identified? <p>1st one is <code>Parse error:... and Why they come? </div>
  • <p>I am trying to find some information on parenthesis enclosed variable declaration syntax in Go but maybe I just do not know its name and that's why I cannot find it (just like with e.g. value and ...
  • ... I tried using endwhile instead of } that didn't solve it so I'm stumped.... I'm drawing a blank about why it's not liking the last line. <p>Thank you for having a look. </div>

空空如也

空空如也

1 2 3 4
收藏数 80
精华内容 32
关键字:

not语法why