助动词的分类及其缩略形式

news2024/11/24 22:33:59

助动词的分类及其缩略形式

  • 1. 助动词 (auxiliary verb)
  • 2. 基本助动词 (primary auxiliary)
    • 2.1. 基本助动词 `be`、`do` 和 `have`
    • 2.2. 实义动词 `be`、`do` 和 `have`
  • 3. 情态助动词 (modal auxiliary)
    • 3.1. `情态助动词`取代`情态动词`
  • 4. 半助动词 (semi-auxiliary)
    • 4.1. 不能与 `it ... that-clause` 结构转换
    • 4.2. 可以与 `it ... that-clause` 结构转换
  • 5. 助动词的缩略形式
    • 5.1. 否定缩略形式
    • 5.2. 肯定缩略形式
  • References

英语动词按照其在构成的动词词组中所起的作用分为主动词 (main verb)助动词 (auxiliary) 两大类。动词词组是以主动词为中心词的词组,它可以仅由一个主动词构成,称为简单动词词组 (simple verb phrase)

简单动词词组 (simple verb phrase):
He buys lemonade every time he goes shopping.
The workers received a raise last year.

lemonade /ˌleməˈneɪd/:n. 柠檬水,柠檬饮料,柠檬味汽水,一杯 (或一瓶) 柠檬饮料
raise /reɪz/:vt. 增加,提高 (数量、水平等),提升,引起,抚养,举起,筹款,饲养,提起,提及,终止,解除 (约束),(使) 直立,站立,使起死回生,使自乘 (若干次),与 ... 取得联系,和 ... 通话,在 (另一玩牌人) 基础上加注 n. 上升,加薪,高地

动词词组也可由一个或一个以上的助动词加主动词构成,称为复杂动词词组 (complex verb phrase)

复杂动词词组 (complex verb phrase):
She is visiting Copenhagen.
They have been taking music lessons.
You should have read the book.
He needn’t have been waiting in the rain.

主动词构成动词词组的语义核心,它表示动词词组的基本意义,主动词又称为实义动词 (notional verb)。

实义动词的特点:

  1. 从词义的角度来看,实义动词具备完整的词汇意义。
  2. 从在谓语部分中的作用的角度来看,实义动词可以单独充当句子的谓语动词。

英语中除了助动词 (包含情态助动词) 以外,其他的均为实义动词。

助动词的语法功能是协助主动词表示不同的语法意义或情态意义,例如表示某一动作正在进行或已经完成,应该做某事或不应该做某事等意义。

1. 助动词 (auxiliary verb)

句子可分为主语部分和谓语部分,‍‍谓语部分的核心是谓语动词。

谓语动词本身往往无法独立表达某些语法概念,需要其它词的辅助构成动词词组,这些辅助词就是助动词,而那些被辅助的谓语动词称作主要动词 (main verb)。

助动词不能单独充当句子的谓语动词,它必须和实义动词连用,以帮助构成各种时态、语态、语气、否定和疑问等。‍‍

在这里插入图片描述

eat 动词表示过去时为 ate,表示第三人称现在时为 eats,表示将来时为 will eat,这里的 will 是用来构成将来时的助动词。助动词 will 本身‍‍是不能独立表达完整句意的,必须加上实义动词。

  • Cambridge Dictionary

https://dictionary.cambridge.org/

auxiliary verb: noun

a verb that gives grammatical information that is not given by the main verb of a sentence:
has is an auxiliary verb in the sentence “She has finished her book”.

  • Longman Dictionary of Contemporary English

https://www.ldoceonline.com/

auxiliary verb: noun, countable

a verb that is used with another verb to show its tense, person, mood etc.
In English the auxiliary verbs are be, do, and have (as in “I am running”, “I didn’t go”, “they have gone”), and all the modals.

mood /muːd/:n. 情绪,心情,气氛,(动词的) 语气,氛围,坏脾气,表达语气的动词屈折变化,坏心境
modal /ˈməʊdl/:n. 情态动词 adj. 模式的,形式的,情态的,语气的

An auxiliary verb (abbreviated aux) is a verb that adds functional or grammatical meaning to the clause in which it occurs, so as to express tense, aspect, modality, voice, emphasis, etc.
助动词缩写为 aux

英语动词可分为主动词 (main verb) 与助动词 (auxiliary) 两大类。助动词用来配合主动词构成复杂动词词组,助动词的语法功能是协助主动词表达不同的语法意义或情态意义。

modality /məʊˈdæləti/:n. 方式,形式,形态,情态,样式,感觉形式,感觉模式
clause /klɔːz/:n. 条款,子句,从句,分句
finite /ˈfaɪnaɪt/:adj. 有限的,限定的,有限制的 n. 有限,有限物
infinite /ˈɪnfɪnət/:adj. 无限的,极大的,无穷尽的,无法衡量的 n. 上帝,无限的事物,无穷尽的事物
infinitive /ɪnˈfɪnətɪv/:n. (动词的) 不定式 adj. (不受人称、数、时态限制的) 动词不定式的

An example is the verb have in the sentence “I have finished my lunch”. Here, the auxiliary have helps to express the perfect aspect along with the participle, finished.
在这里,助动词 have 与分词 finished 一起表达完成时。

Auxiliary verbs are also called helping verbs, helper verbs, or (verbal) auxiliaries.
助动词又称辅助动词。

perfect /ˈpɜːfɪkt , pəˈfekt/:adj. 完美的,最佳的,完备的,优秀的,准确的,全部的,(动词) 完成时的,完成体的,地道的,完全正确的 vt. 使完善,使完美,使完备 n. (动词的) 完成时 (态)
participle /pɑːˈtɪsɪpl/:n. 分词 (现在分词或过去分词)
verbal /ˈvɜːbl/:adj. 口头的,言语的,文字的,动词的,词语的 n. 口供,非限定动词

助动词可以分为三类:基本助动词 (primary auxiliary)、情态助动词 (modal auxiliary) 和半助动词 (semi-auxiliary)。

2. 基本助动词 (primary auxiliary)

基本助动词只有 bedohave,它们分别具有各种变化形式。需要注意的是,它们同时也可以作为实义动词。

助动词的特点:

  1. 从词义的角度来看,基本助动词没有词汇意义,只在动词词组中起语法作用或者说只表示语法意义。
  2. 从在谓语部分中的作用的角度来看,基本助动词不能单独充当句子的谓语动词,它必须和实义动词连用,以帮助构成各种时态、语态、语气、否定和疑问等。

2.1. 基本助动词 bedohave

基本助动词变化形式
beam, am not, is, is not, isn’t, was, was not, wasn’t, are, are not, aren’t, were, were not, weren’t …
dodo, do not, don’t, does, does not, doesn’t, did, did not, didn’t …
havehave, have not, haven’t, has, has not, hasn’t, had, had not, hadn’t …
  • 助动词 be 通常用来协助主动词构成进行时态或被动语态

I am studying grammar. 助动词,帮助构成进行时态
He is sleeping. 助动词,帮助构成进行时态
He is playing football. 助动词,帮助构成进行时态
I was cheated. 助动词,帮助构成被动语态
They were seen. 助动词,帮助构成被动语态

  • 助动词 do 通常用来协助主动词表示否定意义或构成疑问句

I do not like English. 助动词,帮助构成否定
You did not understand. 助动词,帮助构成否定
My wife doesn’t know Russian. 助动词,帮助构成否定
What did she give to Halleck for his birthday? 助动词,帮助构成疑问
Do you like English? 助动词,帮助构成疑问
Do you like it? 助动词,帮助构成疑问

  • 助动词 do 可用来加重语气

I do think you’ll have a hard job convincing him.
You do look well.
He did annoy everyone that evening.
Do come and join us.

  • 助动词 have 通常用来协助主动词构成完成时态或完成进行时态

I have studied English for three years. 助动词,帮助构成完成时态
They have understood. 助动词,帮助构成完成时态
Joan has seen that movie.
I have been working here for 20 years.

2.2. 实义动词 bedohave

bedohave 可以用作实义动词。当作为实义动词时,bedohave 可以单独做谓语动词。注意区分 be 作为系动词和助动词,do 作为实义动词和助动词,have 作为实义动词和助动词。

例句词义词性
I am a student.系动词,用作谓语动词
She is the boss.系动词,用作谓语动词
I am studying grammar.无词义助动词,帮助构成进行时态
I have two brothers.实义动词,用作谓语动词
I have studied English for three years.无词义助动词,帮助构成完成时态
I often do my homework at home.实义动词,用作谓语动词
I do not like English.无词义助动词,帮助构成否定句

3. 情态助动词 (modal auxiliary)

情态助动词表示情态意义,其过去时形式并不一定就表示过去时间。情态助动词不能重叠使用,随后的主动词无一例外地是不带 to 的不定式即动词原形。

情态助动词有 can / couldmay / mightwill / wouldshall / shouldmustought todare / daredneedused to

情态助动词的特点:

  1. 从词义的角度来看,情态助动词有别于基本助动词。情态助动词有自身的词汇意义,例如表示可能、建议、愿望、必要、允许、能力、怀疑等,表示说话者对某种行为或状态的看法或态度。
  2. 从在谓语部分中的作用的角度来看,与基本助动词一样,情态助动词不能单独充当句子的谓语动词,必须和实义动词一起使用。

It may snow before nightfall.
Brenda grew up in Naples. She must know how to speak Italian.
Stainless steel will resist corrosion.
Would you let me use your pen a minute?
When I lived at Del Mar, I used to take a long walk along the footpath under the pine trees.
If she became a movie star, she could afford a new home.

3.1. 情态助动词取代情态动词

在《新编英语语法教程》中,我们釆用情态助动词这一术语,而不用情态动词这一较老的术语。

情态动词 (modal verb) 原系 H. Poutsma 的用语,它包括 can, could, may, might, must, will, would, shall, should, ought to, used to, need, dare, dared 十四个词项。在我国,上述词项历来被视为助动词,但自 20 世纪 50 年代后期,我国出版的某些英语语法书 (也许是受苏联某些英语语法著作的影响),开始釆用情态动词这一术语,直到现在。

为什么在较老的语法书中作者要用情态动词这一术语,而不视之为助动词呢?
这与他们对助动词涵义的不同理解有关。在《英语语法手册》中:助动词一般无词义,不能单独作谓语动词。助动词在句中的作用在于帮助构成各种时态、语态、语气、否定和疑问结构等。《英语语法手册》认为助动词都是没有词义的,而上述词项都可表示情态意义,因而不能算是助动词,故称为情态动词

有无词汇意义是否就是划分助动词与主动词的关键?
我们的回答是否定的。我们认为助动词的主要语法特征是不能独立充当谓语动词,它在句中的作用是协助主动词构成复杂动词词组,表示各种意义。

《新编英语语法教程》把助动词分为三大类:基本助动词 (primary auxiliary)、情态助动词 (modal auxiliary) 和半助动词 (semi-auxiliary)。基本助动词 be, do, have 是没有词义的,而情态助动词和半助动词则是有词义的。之所以叫做情态助动词是由于它本身能表示情态意义,以区别于那些没有词义的基本助动词。如果说它们是情态动词,又说这种动词之后要跟动词原形,似难以自圆其说。

一种分类认为,情态动词是助动词的一种,‍‍可称作情态助动词。‍‍因为它们都辅助主动词,同时不能单独做谓语动词。

另一种分类认为,情态动词和助动词是并列的。因为助动词只起辅助作用,没有词汇意义,而情态动词有实际意义的词‍‍应当被区分开来。

4. 半助动词 (semi-auxiliary)

半助动词 (semi-auxiliary) 是语法作用上介于主动词与助动词之间的,且能表示情态意义的语法结构,故又称为半情态助动词 (semi-modal)。

  • 从形态上看,半助动词可分为三类:一类是以 be 为其中心成分;一类是以 have 为其中心成分;一类是以 seem 等为其中心成分。
  • 从能否与 it ... that-clause 结构进行转换看,又可分为两小类:第一小类不能与 it ... that-clause 句型转换,而第二小类可作这样的转换。

4.1. 不能与 it ... that-clause 结构转换

  • be about to do something
if someone is about to do something, or if something is about to happen, they will do it or it will happen very soon
to be going to do something very soon
即将做某事,马上做某事,正打算做某事

We were just about to leave when Jerry arrived.
I was about to leave when Mark arrived.
Work was about to start on a new factory building.

  • be able to do something
to have the necessary physical strength, mental power, skill, time, money, or opportunity to do something
to have the skill, strength, knowledge etc needed to do something
to be in a situation in which it is possible for you to do something
有能力做某事

I’ve always wanted to be able to speak Japanese.
I’m sorry that I wasn’t able to phone you yesterday.

  • be apt to do something / be apt to be something
to have a natural tendency to do something SYN "tend to"
to be likely to do something or to often do something
易于做某事,倾向于做某事

Some of the staff are apt to arrive late on Mondays.
Cast iron (生铁) is apt to break.

  • be going to do something / be going to be something
to intend to do or be something in the future
to be certain or expected to happen in the future
打算做某事,计划去做某事,将要成为,打算成为

I’m going to be a famous pop star when I’m older.
They’re going to have a baby in the spring.
She’s going to have so many staff to manage.

  • be liable to do something
likely to do or say something or to behave in a particular way, especially because of a fault or natural tendency SYN `likely`
易于做某事

The car is liable to overheat on long trips.
He was liable to just show up without warning.
We are all liable to make mistakes occasionally.

  • be sure to do something
used to tell someone to remember to do something
提醒和警示他人或自己务必做某事

She’s sure to win.
Be sure to ring and let us know you’ve got back safely.
I want to go somewhere where we’re sure to have good weather.

  • be supposed to do something / be supposed to be something
used to say what someone should or should not do, especially because of rules or what someone in authority has said
used to say what was or is expected or intended to happen, especially when it did not happen
used to say that something is believed to be true by many people, although it might not be true or you might disagree
to have to
to have a duty or a responsibility to
to be intended to
应该做某事,被期望做某事

We’re supposed to check out of the hotel by 11 o’clock.
I’m not supposed to tell anyone.
The meeting was supposed to take place on Tuesday, but we’ve had to postpone it.
Mrs Carver is supposed to have a lot of money.

  • be willing to do something
to be happy to do something if it is needed
愿意做某事,乐意做某事

How much are they willing to pay?
If you’re willing to fly at night, you can get a much cheaper ticket.

  • had better do something / had best do something
If you had better/best do something, you should do it or it would be good to do it
used to give advice about what someone should do, or to say what you should do or need to do
used to threaten someone
used to suggest an action or to show that it is necessary
应该做某事,最好做某事

I’d better go and get ready.
You’d better keep your mouth shut about this.
You’d better be working harder when the boss comes back.
I thought I’d best have your opinion first.

  • be due to do something
expected to happen or arrive at a particular time
按计划、约定或预期应该做某事

The team are due to fly to Italy next month.
His new book is due to be published next year.

  • be obliged to do something
to make it necessary for someone to do something
不得已而做某事

As a result of falling profits, we were obliged to close the factory.
James will be obliged to resign.

  • get to do something
to have an opportunity to do something
to begin to do or be
开始做某事,着手做某事

I never get to see her now that she’s moved to California.
You’re getting to be just like your mother.
How did you get to know that I was here?

  • come to do something
to start to do something
开始做某事,着手做某事

I’ve come to like her over the months.
How did you come to know where she is living?

  • fail to do something
未能做某事

Doctors failed to save the girl’s life.
He never fails to write to his mother every week.

  • tend to do something
if something tends to happen, it happens often and is likely to happen again
倾向于做某事,往往会做某事,易于做某事

People tend to need less sleep as they get older.
My car tends to overheat in the summer.

  • have to do something / have got to do something
to need to or be forced
used to say that something must be true
必须做某事,不得不做某事

I have to go to Vermont tomorrow.
We’ve got to go.
Do we have to finish this today?
Jackie’s ill so they’ve had to change their plans.

  • be to do something
used to talk about arrangements for the future
used to give an order or to tell someone about a rule
used to say or ask what someone should do or what should happen
used to ask how something can be done
按计划或安排要做的事

You are to wait here in this room until I return.
I was to have seen him last Wednesday but he didn’t come.

  • be duty bound to do something
to have to do something because it is your duty
有义务做某事,有责任干某事

We are duty bound to investigate the matter.

  • feel bound to do something / be bound to do something
to feel that you ought to do something, because it is morally right or your duty to do it
有义务做某事,觉得有责任做某事

Ian felt bound to tell Joanna the truth.
Don’t lie to her. She’s bound to find out.
When you are dealing with so many patients, mistakes are bound to happen.
You are bound to succeed.

  • feel honour bound to do something / be honour bound to do something
to feel that it is your moral duty to do something
觉得在道义上应该做某事

We felt honor bound to attend their wedding.

4.2. 可以与 it ... that-clause 结构转换

  • turn out to be something

= it turns out that / it turns out

to happen in a particular way, or to have a particular result, especially one that you did not expect
结果是,原来是,证明是 (带有一定的惊讶或意外的语气,说话者对所揭示的情况感到惊讶或意外)

It turned out that I was wrong.
It turned out to be a fine day.
As it turned out, he passed the exam quite easily.

  • seem to do something

= it seems that / it seems
= it would seem that / it would seem

used to make what you are saying less strong or certain, and more polite
似乎要做某事,好像要做某事

I seem to have lost my car keys.
It would seem that someone left the building unlocked.
Things far off seem to be small.

It seems that he is enjoying himself.
= He seems to be enjoying himself.

  • happen to do something

= it happens that

if you happen to do something, you do it by chance
碰巧做某事

I happened to see James in town.
She happened to be met in the street by the boy.
It happens that he is a teacher of English.
恰好他是个英语教师。

It happens that I have had some nasty experiences in dealing with him.
= I happen to have had some nasty experiences in dealing with him.

  • chance to do something

= It chanced that

to happen in a way which is not expected and not planned
有机会做某事

She chanced to be passing when I came out of the house.
It chanced that we both went to Paris that year.
I chanced to be out when she called.

  • appear to do something

= it appears that / it appears

used when saying what you think has happened or is true
似乎要做某事

The research appears to show that the drug is effective in most cases.
It appears that all the files have been deleted.
He appears to have many friends.

It appears that he has many friends here.
= He appears to have many friends here.

  • likely to do something / likely to be something

= it is likely that / it is likely

可能干某事

Children who live in the country’s rural areas are very likely to be poor.
Are we likely to arrive on time?

rural /ˈrʊərəl/:adj. 农村的,乡村的,似农村的
  • unlikely to do something

= it is unlikely that / it is unlikely

not likely to happen
不可能干某事

The weather is unlikely to improve over the next few days.
He is unlikely to win the race.

It is likely / unlikely that they will succeed.
= They are likely / unlikely to succeed.

  • be certain to do something

= it seems certain that

if something is certain, it will definitely happen or is definitely true
一定会做某事

It seemed certain that the other team would win.
He is certain to come.

5. 助动词的缩略形式

英语中有以下 24 个助动词有缩略形式 (contracted form):
am, is, are, was, were, have, has, had, do, does, did, shall, should, will, would, can, could, may, might, must, ought to, need, dare, used to

这里所说的缩略形式主要指基本助动词和情态助动词的缩略形式。鉴于动词 behave 的某些形式作主动词时也能有缩略形式,且较常见,有其实用性,将附带一起处理。

5.1. 否定缩略形式

英语中有以下 23 个助动词有否定缩略形式 (contracted form):

基本助动词分开写缩写
amam not
isis notisn’t
waswas notwasn’t
areare notaren’t
werewere notweren’t
dodo notdon’t
doesdoes notdoesn’t
diddid notdidn’t
havehave nothaven’t
hashas nothasn’t
hadhad nothadn’t
情态助动词分开写缩写
willwill notwon’t
wouldwould notwouldn’t
shallshall notshan’t
shouldshould notshouldn’t
cancan notcan’t
couldcould notcouldn’t
maymay notmayn’t
mightmight notmightn’t
mustmust notmustn’t
daredare notdaren’t
needneed notneedn’t
ought toought not tooughtn’t to
used toused not tousedn’t to

I’m late, aren’t I?
We aren’t ready yet.
He isn’t going anywhere tonight.
He wasn’t home last night.
They weren’t out of town last week.
They haven’t had time to get there.
He hasn’t written again, has he?
I hadn’t got a penny in my pocket.
I don’t often do things like that.
She doesn’t like it.
He didn’t see her till this week.
We shan’t go.
They won’t be here next week.
You shouldn’t smoke so much.
John wouldn’t do a thing like that!
He can’t do it.
I couldn’t swim a year ago.
They mayn’t like it.
It mightn’t be true.
You mustn’t pick the flowers in the park.
I needn’t have gone to the station.
John daren’t go back alone.
You usedn’t to worry about things like that.

有些否定句式能有两种缩略形式可供选择:

She isn’t coming here alone.
She's not coming here alone.

否定疑问句既能用否定缩略形式,也能用非缩略形式。但含义有所不同,用否定缩略形式通常带有肯定与否定双重意向;用非缩略否定形式通常带有否定意向。

Haven’t we seen this film before?
Have we not seen this film before?

5.2. 肯定缩略形式

英语中有以下 10 个助动词有肯定缩略形式 (contracted form):

基本助动词缩写
am'm
is's
are're
have've
has's
had'd
情态助动词缩写
shall'll
will'll
should'd
would'd

1. 肯定缩略形式与人称代词搭配

I’m a student.
She’s been away for months.
We’re playing bridge this evening.
I’ll tell him.
It’s raining.
They’ll have to come home.
I’ve got a lot of things to tell you.
He’d gone when I arrived.
He said you’d had a car accident.
They’d stay in this hotel if it was cheaper.
I’d be grateful if you’d lend me your car.

it'sits 同音异义,不能混淆。
The cat is licking its tail; it’s not licking its paw.

he's, she's, it's = he is / he has, she is / she has, it is / it has,需从上下文予以判别。
He’s here. (is)
It’s been snowing since midnight. (has)

'd 可表示 should, would, had,读音相同,需从上下文予以判别。
I’d finished before he came. (had)
We’d better hurry up. (had)
They’d prefer to go now, but we’d rather go later this evening. (would, would)
We’d have come if you’d asked us. (should / would, had)

2. 肯定缩略形式与名词词组搭配

Mary’s coming tomorrow evening.
That child’s sitting in the middle of the road.
Canada’s got enormous forests.
My friend’s opened a new hotel.
The roads’re good.
The teachers of English’re coming.
Anna’ll be going to London.
The manager’ll see you soon.
The camera’d been stolen.
The book’d be useful.
The guests’ve all gone.
The boys with the top marks’ve got prizes.

3. 肯定缩略形式与指示代词、不定代词、物主代词搭配

That’s fine.
This’ll do.
That’d be much better.
One’s enough.
Something’s got to be done.
Nobody’ll do that for you.
Mine’s blue; yours is red.

4. 肯定缩略形式与存在句引导词 there 搭配

There’s a lot to do.
There’s been a farm here for centuries.
There’ve been too many accidents at this corner.
There’ll be a new film next week.
She wondered if there’d been a mistake.
He thought there’d be an answer by tomorrow.

地点副词 here / there 也常与 's (=is) 搭配

Here’s your cup.
There’s your car.
Here’s your bicycle and there’s mine.

5. 肯定缩略形式与疑问词搭配

How’s your father?
What’s happening?
What’re you doing?
When’s the race going to start?
Where’ve they gone to?
Who’s here?
Why’s he coming?
What’ll you have to drink?
Who’d have believed it?

References

[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/
[2] 英语兔, https://www.yingyutu.com/, https://space.bilibili.com/483162496
[3] 英语语法, https://www.gymglish.com/zh/gymglish/english-grammar
[4] 章振邦,张月祥. 新编英语语法教程 (A New English Grammar Coursebook) 学生用书,第 6 版. 上海:上海外语教育出版社,2017
[5] H. Poutsma, A Grammar of Late Modern English
[6] 薄冰, 赵德鑫. 英语语法手册 (A Handbook Of English Grammar),第 5 版. 北京:商务印书馆,2004

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2195468.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

MoveIt2-humble----Planning Around Objects(a)

4.Pick and Place with MoveIt Task Constructor 本节教程会教你创建一个功能包,使用MoveIt Task Constructor规划一个抓取和放置的操作。MoveIt Task Constructor 提供了一种方式,去规划由多种不同子任务(也称为阶段)所组成的任…

详解Redis分布式锁在SpringBoot的@Async方法中没锁住的坑

背景 Redis分布式锁很有用处,在秒杀、抢购、订单、限流特别是一些用到异步分布式并行处理任务时频繁的用到,可以说它是一个BS架构的应用中最高频使用的技术之一。 但是我们经常会碰到这样的一个问题,那就是我们都按照标准做了但有时运行着、…

分层解耦-05.IOCDI-DI详解

一.依赖注入的注解 在我们的项目中,EmpService的实现类有两个,分别是EmpServiceA和EmpServiceB。这两个实现类都加上Service注解。我们运行程序,就会报错。 这是因为我们依赖注入的注解Autowired默认是按照类型来寻找bean对象的进行依赖注入…

基于Qt的速度仪表盘控件实现

本文将详细讲解一个基于Qt的速度仪表盘控件的实现过程,并对代码进行详细的注释说明。该控件可以模拟汽车仪表盘的外观,并通过滑动条动态改变速度显示。本文将从代码结构、绘制组件到实现细节进行讲解,帮助您理解如何使用Qt框架自定义绘制控件…

CSRF | GET 型 CSRF 漏洞攻击

关注这个漏洞的其他相关笔记:CSRF 漏洞 - 学习手册-CSDN博客 0x01:GET 型 CSRF 漏洞攻击 —— 理论篇 GET 型 CSRF 漏洞是指攻击者通过构造恶意的 HTTP GET 请求,利用用户的登录状态,在用户不知情的情况下,诱使浏览器…

Cortex-M3/M4/M7 芯片 Fault 分析原理与实战

目录 一、简介1、异常类型2、异常优先级3、同步异步问题4、异常具体类型 二、Fault exception registers1、Control registers1.1 CCR1.2 SHP1.3 SHCSR 2、Status and address registers2.1 HardFault Status Register——HSFR2.2 Configurable Fault Status Register——CFSR2…

《Linux从小白到高手》进阶实操篇:用户及权限有关的实际工作场景应用

List item 本篇为《Linux从小白到高手》进阶实操篇的第一篇,主要介绍分享一些用户及权限有关的实际工作场景应用。 场景1: 实际工作中你一定会碰到如下图所示的情景:本部门有5个组,分别为:①Root组:用户…

Python中对象obj类型确定最pythonic的方式——isinstance()函数

python中确定对象obj的类型,isinstance函数最是优雅,type、issubclass等函数也可以,但终究“曲折”。 (笔记模板由python脚本于2024年10月07日 19:42:38创建,本篇笔记适合喜欢python的coder翻阅) 【学习的细节是欢悦的历程】 Pyth…

Vue2电商项目(七)、订单与支付

文章目录 一、交易业务Trade1. 获取用户地址2. 获取订单信息 二、提交订单三、支付1. 获取支付信息2. 支付页面--ElementUI(1) 引入Element UI(2) 弹框支付的业务逻辑(这个逻辑其实没那么全)(3) 支付逻辑知识点小总结 四、个人中心1. 搭建二级路由2. 展示动态数据(1). 接口(2).…

【Kubernetes】常见面试题汇总(六十)

目录 131. pod 一直处于 pending 状态? 132. helm 安装组件失败? 特别说明: 题目 1-68 属于【Kubernetes】的常规概念题,即 “ 汇总(一)~(二十二)” 。 题目 69-113 属于…

企业经营异常怎么解除

经营异常是怎么回事?是什么意思?了解异常原因:我们到所属工商营业执照异常的具体原因。原因可能包括未按时提交年报、未履行即时信息公示义务、公示信息隐瞒真实情况或弄xu作jia、失联等。纠正违规行为:查到了异常原因&#xff0c…

洛谷P5723、P5728、P1428、P1319 Python解析

P5723 完整代码 def is_prime(y):if y < 2:return Falsefor i in range(2, int(y**0.5) 1):if y % i 0:return Falsereturn Truen int(input()) sum_primes 0 x 0if n < 2:print("0") elif n 2:print("2\n1") else:for i in range(2, n 1):i…

计数原理与组合 - 离散数学系列(三)

目录 1. 计数原理的基本概念 加法原理&#xff08;Rule of Sum&#xff09; 乘法原理&#xff08;Rule of Product&#xff09; 2. 排列与组合 排列&#xff08;Permutation&#xff09; 组合&#xff08;Combination&#xff09; 日常生活中的例子 3. 二项式定理 4. 实…

Mysql锁机制解读(敲详细)

目录 锁的概念 全局锁 表级锁 表锁 元数据锁 意向锁 锁的概念 全局锁 表级锁 表锁 元数据锁 主要是对未提交事务&#xff0c;修改表结构造成表结构混乱&#xff0c;进行控制。 在不涉及表结构变化的情况下,元素锁可以忽略。 意向锁 避免有行级锁影响加表级锁&#xff0…

Mysql(六) --- 聚合函数,分组和联合查询

文章目录 前言1.聚合函数1.1.常用的函数1.2.COUNT()1.3.SUM()1.4.AVG()1.5.MIN()、MAX() 2.GROUP BY 分组查询2.1.语法2.2.示例2.3.HAVING 子句 3.联合查询3.1.为什么要进行联合查询3.2.那么是如何进行联合查询的3.3.示例&#xff1a;一个完整的联合查询的过程3.4.内连接3.5.外…

Error:WPF项目中使用oxyplot,错误提示命名空间中不存在“Plot”名称

在OxyPlot中&#xff0c;<oxy:PlotView>和<oxy:Plot>都是用来显示图表的控件&#xff0c;在WPF项目中使用oxyplot之前&#xff0c;先通过NuGet安装依赖包&#xff1a;OxyPlot.Wpf。 <oxy:PlotView>和<oxy:Plot>使用示例&#xff1a; <oxy:PlotVie…

【算法】双指针(续)

一、盛最多水的容器 11. 盛最多水的容器 - 力扣&#xff08;LeetCode&#xff09; 给定一个长度为 n 的整数数组 height 。有 n 条垂线&#xff0c;第 i 条线的两个端点是 (i, 0) 和 (i, height[i]) 。 找出其中的两条线&#xff0c;使得它们与 x 轴共同构成的容器可以容纳最多…

OJ在线评测系统 微服务 OpenFeign调整后端下 nacos注册中心配置 不给前端调用的代码 全局引入负载均衡器

OpenFeign内部调用二 4.修改各业务服务的调用代码为feignClient 开启nacos注册 把Client变成bean 该服务仅内部调用&#xff0c;不是给前端的 将某个服务标记为“内部调用”的目的主要有以下几个方面&#xff1a; 安全性: 内部API通常不对外部用户公开&#xff0c;这样可以防止…

Nginx05-基础配置案例

零、文章目录 Nginx05-基础配置案例 1、案例需求 &#xff08;1&#xff09;有如下访问 http://192.168.119.161:8081/server1/location1 访问的是&#xff1a;index_sr1_location1.htmlhttp://192.168.119.161:8081/server1/location2 访问的是&#xff1a;index_sr1_loca…

慢接口分析与优化总结

文章目录 1. 慢接口优化的意义2. 接口耗时构成3. 优化技巧3.1. 内部代码逻辑异步执行[异步思想]并行优化拒绝阻塞等待预分配与循环使用[池化思想]线程池合理设计锁粒度避免过粗优化程序结构 3.2. 缓存恰当引入缓存[空间换时间思想]缓存延迟优化提前初始化缓存[预取思想] 3.3. 数…