as long as用法全解

这篇文章主要介绍了python中as用法,实例分析了as的功能及相关使用技巧,非常具有实用价值,需要的朋友可以参考下本文实例讲述了python中as用法。分享给大家供大家参考。具体分析如下:import some # some 为一个模组如果想要改变被导入模组在当前模组中的名称,而不是sys.modules中的名称。可以使用import as,例如:import some as otherprint(other.name)和import someother = somedel someprint(other.name)一样。希望本文所述对大家的Python程序设计有所帮助。
更多信息请查看
更多信息请查看
易贤网手机网站地址:
【】&&&&&【点此处查询各地各类考试咨询QQ号码及交流群】
由于各方面情况的不断调整与变化,易贤网所提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!
云南各地招聘
&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp会员注册
本站不参与评论,(&&点此深度交流 )
自觉遵守:爱国、守法、自律、真实、文明的原则
尊重网上道德,遵守中华人民共和国各项有关法律法规
严禁发表危害国家安全,破坏民族团结、国家宗教政策和社会稳定,含侮辱、诽谤、教唆、淫秽等内容的评论
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
您在本站发表的评论,本站有权保留、转载、引用或者删除
参与本评论即表明您已经阅读并接受上述条款as的用法(全)_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
as的用法(全)
上传于||暂无简介
阅读已结束,如果下载本文需要使用1下载券
想免费下载本文?
下载文档到电脑,查找使用更方便
还剩3页未读,继续阅读
你可能喜欢你现在的位置 : &
as…as 结构用法详解
  其基本意思为&与&一样&,其中的第一个as为副词,其后通常接形容词或副词,第二个as可用作介词或连词。使用时应注意以下几点。如:
  在否定句中,第一个 as 也可换成 so。如:
  He doesn&t study as hard as his brother. 他学习不如他弟弟努力。
  在该结构的两个as之间通常接形容词或副词的原级,但若涉及数量或程度,可用&as much+不可数名词+as&和&as many+复数名词+as&。如:
  You&ve made as many mistakes as I have. 你犯的错误和我犯的一样多。
  I haven&t got as much money as I thought. 我不像原来想像的有那么多钱。
  其间接形容词时,有时该形容词还可修饰另一名词,但这个名词应带有不定冠词。如:
  She is as good a teacher as her mother. 她和她妈妈一样是位好老师。
  也可说。如:She is a teacher as good as her mother.
  但不说。如:She is as a good teacher as her mother. / They are as good teachers as us.
  第二个as后接从句时,该as通常为连词,但有时这个as还充当其后从句的主语或宾语,此时该as实为关系代词。如:
  I gave him as much as he could eat. 他能吃多少,我就给了他多少。
  We&ve got food for as many people as want it. 我们的食物,无论多少人吃都够了。
  该结构根据情况可用使用以下修饰语。如: nearly, almost, just, nothing like, exactly, not quite, half, one-ten, twice, three times, 30 per cent等,并且这些修饰语必须置于第一个as之前,而不能置于其后。如:
  He doesn&t play half as well as his sister. 他演奏的水平不及他姐姐的一半。
  This dress is twice as expensive as that. 这件连衣裙比那件贵一倍。
  若第二个as引导一个表示将来意义的从句,则该从句可用现在时表示将来,也可直接使用将来时态。如:
  We&ll get there as soon as you do . 你一到,我们就到。
  在非正式场合,有时可以省略第一个as。如:
  When over forty, he married a woman poor as himself. 他在40多岁时娶了一个像他本人一样穷的女人。
  另外,若意思明确,有时可省略第二个as及其后的相关词语。如:
  The radios in that shop will be cheaper, but not as good. 那家商店的收音机会便宜些,但质量没那么好。
  相关推荐  
百科词条:
相关文章推荐
更多家长在看
热门文章推荐
热门话题推荐选项C-3743
语法 Sentence Correction-3743
As is the case with traditional pharmacies, prescriptions are the cornerstone of a successful on-line drugstore, since it is primarily prescriptions that attract the customers, who then also buy other health-related items.
划线句子是否正确?
正确的用户笔记
首先固定搭配As is the case with是正确的
另外,在C选项中,As is the case with并不是like或unlike这种类型的比较,既然是case,就代表是整个状况的比较,所以prescriptions are the cornerstone of a successful on-line drugstore比较的是prescriptions are the cornerstone of a successful traditional pharmacies,是两个case的比较。
比较对象没有什么问题。
句子结构:As is the case with…, prescriptions are… 比较结构。
考点:比较
1) 比较的习惯用法,as be the case (with)…,是prep新出现的固定搭配,是as the case be的倒装表达,常见的错误用法有: as in/with the case of等。
as is the case with,修饰的是后面整个句子,很好。
prescription做主语,强调了这玩意,不错
danislj1227126
首先固定搭配As is the case with是正确的
另外,在C选项中,As is the case with并不是like或unlike这种类型的比较,既然是case,就代表是整个状况的比较,所以prescriptions are the cornerstone of a successful on-line drugstore比较的是prescriptions are the cornerstone of a successful traditional pharmacies,是两个case的比较。
比较对象没有什么问题。
jessicachow
as is the case with sth.搭配。prescriptions are the cornerstone of a successful on-line drugstore比较的是prescriptions are the cornerstone of a successful traditional pharmacies,是两个case的比较。 比较对象没有什么问题。
huiminzi1124
As is the case with并不是like或unlike这种类型的比较,既然是case,就代表是整个状况的比较,所以prescriptions are the cornerstone of a successful on-line drugstore比较的是prescriptions are the cornerstone of a successful traditional pharmacies,是两个case的比较。 比较对象没有什么问题。
As is the case with并不是like或unlike这种类型的比较,既然是case,就代表是整个状况的比较,所以prescriptions are the cornerstone of a successful on-line drugstore比较的是prescriptions are the cornerstone of a successful traditional pharmacies,是两个case的比较。
FreyaDoubles
固定搭配As is the case (with)
As is the case with并不是like或unlike这种类型的比较,既然是case,就代表是整个状况的比较,所以比较对象没有什么问题。
纯洁小吹吹吹
首先固定搭配As is the case with是正确的 另外,在C选项中,As is the case with并不是like或unlike这种类型的比较,既然是case,就代表是整个状况的比较,所以prescriptions are the cornerstone of a successful on-line drugstore比较的是prescriptions are the cornerstone of a successful traditional pharmacies,是两个case的比较。 比较对象没有什么问题。
as be the case (with)…,是prep新出现的固定搭配,是as the case be的倒装表达,常见的错误用法有: as in/with the case of等
首先固定搭配As is the case with是正确的 另外,在C选项中,As is the case with并不是like或unlike这种类型的比较,既然是case,就代表是整个状况的比较,所以prescriptions are the cornerstone of a successful on-line drugstore比较的是prescriptions are the cornerstone of a successful traditional pharmacies,是两个case的比较。 比较对象没有什么问题
首先固定搭配As is the case with是正确的 另外,在C选项中,As is the case with并不是like或unlike这种类型的比较,既然是case,就代表是整个状况的比较,所以prescriptions are the cornerstone of a successful on-line drugstore比较的是prescriptions are the cornerstone of a successful traditional pharmacies,是两个case的比较
首先固定搭配As is the case with是正确的
另外,在C选项中,As is the case with并不是like或unlike这种类型的比较,既然是case,就代表是整个状况的比较,所以prescriptions are the cornerstone of a successful on-line drugstore比较的是prescriptions are the cornerstone of a successful traditional pharmacies,是两个case的比较。
比较对象没有什么问题。
本题所有选项
全面的GMAT备考资源,注册即可免费拥有!
第三方登录:C#中is和as用法实例分析
投稿:shichen2014
字体:[ ] 类型:转载 时间:
这篇文章主要介绍了C#中is和as用法实例分析,需要的朋友可以参考下
本文实例讲述了C#中is和as的用法,对加深is与as用法的理解有一定的帮助借鉴作用。具体如下:
现来看个例子:
public class User
public class Group
class Program
static void Main(string[] args)
Object oUser = new User();
Object user = (Group)oU
这样会报错(InvalidCastException),由于C#安全机制,它会去判断一次。我们这里做了非法的转换。
Is做判断:is说判断对象是不是你要的那个类型(这里说User)
修改后的示例如下:
class Program
static void Main(string[] args)
Object obj = new User();
if (obj is User)
User user = (User)
这样的话,我们在obj is User这里做了一次判断,我们刚才说了,(User)obj这样的操作(强制转换)编译器还会做一次操作,这样就有性能上面的消耗。来看看AS。
AS操作:如果说改对象就转换,不是则返回null.
class Program
static void Main(string[] args)
Object obj = new User();
User user = obj as U
if(user==null)
// handle error
注:个人比较喜欢用As,简化了操作也提高了性能,做一个NULL判断,直接处理这种异常也说很方便。
希望本文所述方法对大家的C#程序设计能有一定的帮助与借鉴价值。
您可能感兴趣的文章:
大家感兴趣的内容
12345678910
最近更新的内容
常用在线小工具

我要回帖

更多关于 as long as用法 的文章

 

随机推荐