精华内容
下载资源
问答
  • 1.whether引导主语从句时,既可以直接位于句首,也可以位于句末;if引导主语从句时只能用于it作形式主语的从句中。  whether we need it is a ...在宾语从句中,当表示“是否”时,whether与if可以互换,但如果从句
           1.whether引导主语从句时,既可以直接位于句首,也可以位于句末;if引导主语从句时只能用于it作形式主语的从句中。
      whether we need it is a different matter.
      it is a different matter whether(if)we need it.


      2.在宾语从句中,当表示“是否”时,whether与if可以互换,但如果从句中有or not 时只能用whether 引导。

    i don’t know whether he will come or not.


      3.whether引导的从句可以充当介词宾语,if则不行。
      i worry about whether i hurt her feelings.


      4.whether引导的从句可以作名词的同位语,if则不行。

            the question whether we need it has not been decided.


      5.可能造成歧义时,用whether而不用if。
      please let me know whether you are coming.
      请告诉我你是否要来。(whether引导宾语从句)
      please let me know if you are coming.
      如果你要来,请告诉我。(if引导状语从句)



    from:http://www.jxteacher.com/xzs2011/column20717/59bc45a4-16a7-41f0-a6b4-d606a2aec1f5.html

    展开全文
  • Ant If与Corn

    2018-04-20 17:35:21
    Perform some tasks based on whether a given condition holds true or not.根据给定的条件是否正确执行一些任务。有三个子元素:<elseif>, <then> and <else>例子 &...
    Perform some tasks based on whether a given condition holds true or not.
    根据给定的条件是否正确执行一些任务。

    有三个子元素:
    <elseif>, <then> and <else>
    例子
    <var name="foo" value="bar"/>
    <if>
    <equals arg1="${foo}" arg2="bar" />
    <then>
    <echo message="The value of property foo is bar" />
    </then>
    <else>
    <echo message="The value of property foo is not bar" />
    </else>
    </if>

    <var name="foo" value="foo"/>
    <if>
    <equals arg1="${foo}" arg2="bar" />
    <then>
    <echo message="The value of property foo is 'bar'" />
    </then>

    <elseif>
    <equals arg1="${foo}" arg2="foo" />
    <then>
    <echo message="The value of property foo is 'foo'" />
    </then>
    </elseif>
    <else>
    <echo message="The value of property foo is not 'foo' or 'bar'" />
    </else>
    </if>
    判断而已,没什么好说。


    Corn实现表达式的判断
    实现Corn的取下一次时间
    必需要带四个参数:
    exp:Corn表达式
    time 判断时间
    format 判断时间的格式(yyyyMMdd HH:mm:ss)
    property 存储“判断时间后下次符合条件的时间

    示例:

    备注:中文格式有问题
    展开全文
  • php速度与if语句

    2010-10-09 19:15:21
    <p>At its core, I think, it's a question of whether: <pre><code><?php echo 'hello world!'; ?> </code></pre> <p>is any faster than <pre><code><?php if(FALSE) { // thousands of lines of ...
  • interrupted:测试当前线程是否是中断状态,执行完清除中断状态isInterrupted:测试Thread对象是否是中断状态,不清除中断状态public static boolean interrupted...}/*** Tests whether this thread has been inter...

    interrupted:测试当前线程是否是中断状态,执行完清除中断状态

    isInterrupted:测试Thread对象是否是中断状态,不清除中断状态

    public static boolean interrupted() {

    return currentThread().isInterrupted(true);

    }

    /**

    * Tests whether this thread has been interrupted.  The interrupted

    * status of the thread is unaffected by this method.

    *

    *

    A thread interruption ignored because a thread was not alive

    * at the time of the interrupt will be reflected by this method

    * returning false.

    *

    * @return  true if this thread has been interrupted;

    *          false otherwise.

    * @see     #interrupted()

    * @revised 6.0

    */

    public boolean isInterrupted() {

    return isInterrupted(false);

    }

    /**

    * Tests if some Thread has been interrupted.  The interrupted state

    * is reset or not based on the value of ClearInterrupted that is

    * passed.

    */

    private native boolean isInterrupted(boolean ClearInterrupted);

    展开全文
  • 当张量张量之间进行操作,需要对 <code>batch_axis</code> 进行一系列检查以及推导 以 <code>oneflow.math.add</code> 为例子 <pre><code> ("math.add") def add( x: Union[int, float, remote_...
  • wcf负责数据库打交道As good as you are at what you do, it is inevitable that you will eventually have a client who is less than thrilled ... Whether it’s from clashing tastes or if you’re just hav...

    wcf负责与数据库打交道

    unhappy

    As good as you are at what you do, it is inevitable that you will eventually have a client who is less than thrilled with your work. Whether it’s from clashing tastes or if you’re just having an off day, it happens.

    尽管您的工作水平出色,但不可避免的是,您最终会有一个对工作不满意的客户。 无论是出于口味冲突,还是只是休息日,都会发生这种情况。

    1. Address the Problem

    1.解决问题

    If you know the client is unhappy, don’t ignore it. Ask them why they are unhappy and what you can do to fix the situation. The longer you wait to bring it up, the worse it can get. No one wants to have this uncomfortable conversation, but not only will addressing the issue put you on the path to resolution, but your willingness to face it head-on will tell the client you care about the project and their satisfaction.

    如果您知道客户不满意,请不要忽略它。 问他们为什么不满意,以及您可以采取什么措施来解决这种情况。 您等待的时间越长,效果越差。 没有人希望进行这种令人不安的谈话,不仅解决此问题将使您走上解决之路,而且您愿意直面它的意愿还将告诉客户您对项目及其满意度感到关注。

    2. Have a Do-Over

    2.复习

    If it’s your work that the client is unhappy with, start over. Sometimes coming at it again from a different direction will align you closer to what the client is looking for. And make sure you ask the client a lot of questions to get a handle on the idea in their head that you are trying to match. A good designer is sometimes a little bit like a psychic, and asking the right questions will get you the right answers.

    如果客户对您的工作不满意,请重新开始。 有时,从不同的方向再次尝试将使您更贴近客户的需求。 并确保您问客户很多问题,以使您想匹配的想法在他们的脑海中得到处理。 好的设计师有时有点通灵,问正确的问题将为您提供正确的答案。

    3. Get Help

    3.获得帮助

    Ask a fellow designer to take a look and give their input. A fresh perspective may help both you and the client see something new. Adding another person to the mix may also help if you’re dealing with a communication issue or personality conflict, and it can facilitate problem resolution.

    请一位同行的设计师看一看并提供意见。 全新的观点可能会帮助您和客户看到新的事物。 如果您要解决沟通问题或人格冲突,则在混合中添加其他人也可能会有所帮助,并且可以帮助解决问题。

    4. Switch It Up

    4.开机

    If the problem stems from miscommunication, try a new format. If you have been handling everything via e-mail, schedule a phone call to see if you can get things cleared up voice-to-voice. After the call, you can summarize the conversation and send the information to the client in an e-mail. This will give you an extra opportunity to make sure you’re both on the same page.

    如果问题是由于沟通不畅造成的,请尝试一种新格式。 如果您一直在通过电子邮件处理所有事情,请安排一个电话以查看是否可以将语音转换成语音。 通话后,您可以汇总对话并通过电子邮件将信息发送给客户端。 这将为您提供一个额外的机会,以确保您都在同一页面上。

    5. Move On

    5.继续前进

    If you’ve done everything you can, but the client is still not satisfied, it may be time to part ways. Be honest, direct and professional. One way to end a client relationship is by recommending them to another designer who may be able to help them better than you can. This supports another designer who you respect, gives the client what they want and gets you out of a frustrating situation. It’s a win-win(-win). Image credit: Angus Fraser

    如果您已竭尽所能,但客户仍然不满意,则可能是时候分道扬。了。 诚实,直接和专业。 终止客户关系的一种方法是将他们推荐给另一位设计师,他可能会比您更好地帮助他们。 这可以为您所尊重的另一位设计师提供支持,为客户提供他们想要的东西,并使您摆脱困境。 这是双赢。 图片来源: Angus Fraser

    翻译自: https://www.sitepoint.com/5-easy-ways-to-deal-with-an-unhappy-client/

    wcf负责与数据库打交道

    展开全文
  • i am working a on a permission ... In each page it will need to check whether if the user has the permission to do so. I have two choices, store the data in a session variable (which is only updat...
  • 算法设计应用基础

    2017-03-12 22:35:41
    Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinking of c
  • Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinking
  • 先写下重点QApplication::quitOnLastWindowClosed以下是对于QApplication中此属性的解释:This property holds whether the application implicitly quits when the last window is closed.The default is true.If ...
  • 神经网络 对话If your cell phone is suggesting whether a mushroom you just picked up from your backyard for your dinner is poisonous, it better be sure about it! Computer vision applications are now ...
  • 从句`主语从句`由that引导`由whether引导由特殊疑问词引导`宾语从句`由that引导由if,whether引导由特殊疑问词引导表语从句由that,whether引导由特殊疑问词引导同位语从句`定语从句``关系词``关系代词引导的定语从句`...
  • c# uri.host Uri.IsWellFormedOriginalString()方法 (Uri.IsWellFormedOriginalString() ...Uri.IsWellFormedOriginalString() method is used to check whether given Uri is well-formed or not, if Uri is wel...
  • python函数示例 Python any()函数 (Python any() ...any() function is used to check whether any of the elements of an iterable object is True or not. It accepts an iterable object and returns True, if o...
  • open系统调用: #include <fcntl.h>int open(const char *pathname, int oflag, ... /*mode_t mode */ ); 其中,oflag有个可选值为: ...This test for whether the file already exists and the c
  • 插座 AJAX

    2013-11-17 03:57:56
    <p><strong>Disclaimer:</strong> I don't actually know what sockets are or how they work, I just know roughly how to implement them and am deciding whether to look into them further. </div>
  • 根据官方API的定义: final def ==(arg0: Any... The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that). final def eq(arg0: AnyRef): Boolean Tests whether the argume...
  • number.isnan 编号isNaN()方法 (Number isNaN() ...isNan() method is a Number method in JavaScript, it is used to check whether a number is a valid number or not. It returns true if the number is "Not-a...
  • Ajax绑定服务器绑定

    2012-05-07 15:03:27
    I need to choose whether I will user server or ajax binding. What is the difference between these two? <p>I was told that when I pass data from the controller to the view via model, that is server ...
  • // 可以利用事件委托进行处理hash和锚点的冲突问题。 // handleAnchorClick(e){ if (e.target && e.target.tagName.toLowerCase() === 'a') { ... // Determine whether the cli...
  • c语言 函数的参数传递示例 C ++ isunordered()函数 (C++ ...isunordered() function is a library function of cmath header, it is used to check whether the given values are unordered (if one or both...
  • 不要认为他人的好是理所当然If you’ve been using R for a while now, you may have come across the double “&” operator. Most people who’ve coded before, whether in R or some other language, have ...
  • Givenan unsorted array return whether an increasing subsequence of length 3 existsor not in the array.Formallythe function should:Return true if there exists i, j, k such that arr[i] arr[j] arr[k...
  • 但是,越来越多的CA使用这些密钥使用字段颁发证书。...EndEntityChecker:/*** Check whether this certificate can be used for code signing.* @throws CertificateException if not.*/private void checkC...
  • <p>it wont quite work because after pressing the PC version button it goes indeed to the PC version page but if I navigate from there it redirects again to the mobile version. What solution can I use?...
  • 根据官方API的定义: final def ==(arg0: Any...The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that) final def eq(arg0: AnyRef): Boolean Tests whether the argument (...
  • key_exists() PHP array_key_exists()函数 (PHP array_key_exists() ...array_key_exists() function is used to check whether an array contains the given key or not. If key exists in the array – it ret...
  • So if it is a product page, I check whether cookie is already set, if yes, then I just want to add product ID to the array if it is already there and update the value. And if cookie is not set, I'm ...

空空如也

空空如也

1 2 3 4 5 ... 9
收藏数 162
精华内容 64
关键字:

whether与if