英语写作中“选择”choice option selection alternative 的用法

本文探讨了在科技论文中常用的几个选择词汇,包括choice的非正式性,option的正式选择含义,alternative作为替代选项的用法,以及selection的规则性选择。通过实例解析它们之间的区别和适用场景。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、choice 是日常生活用词,例如

We have two choices for you.(我们给你两个选择。)

由于choice不太正式(formal),所以在科技论文写作中用得比较少。

二、option 在科技论文中常用,表示可能的选择,例如:

There are two options for users : to register to every individual sever, or to register to a dedicated server and receive a token.(用户有两个选择:在每个服务器注册,或者在专用服务器注册并获得一个令牌。)

On the UI, the user can choose/click the option “Confirm ”, or the option “Cancel”.(在用户界面上,用户可以选择“确认”或“取消”。)

注意option 与candidate 的区别,后者强调合适的供选择的对象,例如:

We have two candidates.(我们有两个候选人)与 We have two options.(我们有两个选择)意义不一样,前者强调他们挺合适,后者只是叙述有两个选择这个事实。

The adversary can obtain the information about a person and construct a candidate set of his possible password.(敌手能得到一个人的信息,然后构造他的可能口令的集合。)

三、alternative 表示对已有的/已用的东西可替代的选择,例如:

We have used Model A. But we have an alternative.(我们使用了模型A,但我们还有一个选择。)

To built a public key cryptographic scheme, the hard problem large number factorization is an alternative to discrete logarithm.(为了构造公钥体制,难解问题大数分解也可与离散对数一样使用。)这里意味着离散对数先得到考虑或应用。

alternative 的形容词用法更为普遍,例如:

In image compression, wavelet transformation is an alternative algorithm to DCT.(图像压缩中,小波变换是可以替代离散余弦变换的另一种算法。)

An alternative approach to achieve binary tree traversal is recursion.(二叉树遍历的另一种方法是递归。)

注意:another……the other……与an alternative ……的区别,前两者是比较灵活的文体,alternative 比较正式,是书面语。an alternative 可以代替another ,语气比another 正式;但是它不能代替the other。例如:

Another way to go downtown is by subway.(去市中心的另一个办法是坐地铁。)

如果说:An alternative way to go downtown is……就把一件生活小事说得太文绉绉了。

We have two ways to get downtown. One is by bus, and the other is by train.(我们有两个办法去市中心,一是坐公交,一是坐火车。)这里不能用alternative 代替the other,因为alternative 是指潜在的选择,而the other是指摆在面前的另一个(二者之一)选择。

四、selection 与上面的单词不同,它是指(按一定规则)选择的动作,例如:

In each node, the router makes a selection of routing for the packet.(在每个网络结点,路由器都会为数据包做路径选择。)

Every species is the result of natural selection.(每一个物种都是自然选择的结果。)

顺便比较一下selection 的动词与choose 的区别。choose是一般选择,而select一般指按一定规则、标准选择,例如:

Randomly choose an element from the set.(从集合中随机选择一个元素。)这里不能用select。

Customers deliberately select games to test computers.(客户细心挑选游戏来测试计算机。)当然这里用choose也可以。

(例句均属原创。)

 

 

 

在 Java 中,选择控件(choice)事件的接口方法是使用事件监听器(Event Listener)来实现。具体来说,我们可以为选择控件添加一个 ItemListener 监听器,然后在监听器的回调方法中处理用户选择控件的事件。 以下是一个使用 ItemListener 监听器的示例代码: ``` import java.awt.*; import java.awt.event.*; public class ChoiceDemo extends Frame implements ItemListener { private Choice choice; public ChoiceDemo() { choice = new Choice(); choice.add("选项1"); choice.add("选项2"); choice.add("选项3"); choice.addItemListener(this); add(choice); setSize(300, 200); setVisible(true); } public static void main(String[] args) { new ChoiceDemo(); } @Override public void itemStateChanged(ItemEvent e) { if (e.getSource() == choice) { System.out.println("用户选择了:" + choice.getSelectedItem()); } } } ``` 在上述代码中,我们创建了一个 Choice 控件,并添加了三个选项。然后,我们通过 `choice.addItemListener(this)` 为 Choice 控件添加了一个 ItemListener 监听器,监听器的实现在 ChoiceDemo 类中。 在 `itemStateChanged` 方法中,我们首先通过 `e.getSource()` 方法判断事件来源是否为 Choice 控件。如果是,就通过 `choice.getSelectedItem()` 方法获取用户选择的选项,并将其打印出来。 当用户选择控件中的某个选项时,就会触发 ItemListener 监听器,并调用 `itemStateChanged` 方法。这样,我们就可以在该方法中处理用户选择控件的事件。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值