
除…之外
Select to hide all of the relationships except association relationships, as Figure 8 shows.
选择隐藏除了关联关系以外的所有关系,如图8所示。
Except as otherwise provided by law.
法律另有规定的除外。
Edit base.ldif, removing all entries except as follows.
编辑base . ldif,删除除下面之外的所有条目。
Remember that time does not exist except as a perception.
记住,除了作为一种感觉,时间根本不存在。
The things you fear do not really exist except as thoughts in your mind.
你害怕的事物其实并不存在,它们只存在于你的意识的想法中。
|in addition to/over and above;除…之外
"except as" 是一个英语短语,主要包含两种核心含义,其具体意思取决于上下文:
"除非作为..." (Unless in the capacity of... / Unless acting as...):
"除...之外作为..." (Other than in the role of... / Apart from being...):
总结关键点:
参考来源: 对于英语短语的精确含义和用法,权威的英语词典和语法指南是最可靠的参考来源。例如,可以参考《牛津高阶英汉双解词典》或《朗文当代高级英语辞典》中关于 "except" 的条目,它们通常会详细解释 "except" 与 "as" 等介词搭配时的特定含义和例句。Merriam-Webster 在线词典 (https://www.merriam-webster.com/) 或 Oxford Learner's Dictionaries (https://www.oxfordlearnersdictionaries.com/) 也是极好的在线资源。
以下是关于"except as"的详细解释,综合了不同语境下的用法:
在普通英语中,"except as"属于介词短语结构:
基本含义:表示"除非以...方式"或"除了作为...的情况"
语法特点:
典型搭配:
在Python异常处理中,"except as"是固定语法结构:
try:
# 可能出错的代码
except ExceptionType as e:
# 处理异常的代码(e是异常实例)
核心作用:
as
将捕获的异常对象赋值给变量e
e
可获取异常详细信息(如错误类型、堆栈轨迹等)常用属性:
print(e.args)# 错误参数元组
print(str(e))# 错误信息字符串
print(type(e)) # 异常类型
实际应用示例:
try:
1/0
except ZeroDivisionError as z:
print(f"错误类型:{type(z).__name__},详情:{z}")
与单纯except
的区别:
except
会捕获所有异常,但无法获取异常对象except as
能精准捕获特定异常并提取信息与except for
的区别:
except for
是英语中表排除的固定搭配(如:The room is empty except for a chair)except as
在编程中是技术性语法结构建议根据具体使用场景选择对应解释。编程场景下推荐参考的Python官方文档规范,普通英语用法可查阅的权威词典。
【别人正在浏览】