Looking forward to U8 cross-country player version will be listed on April 25th, looking forward to U7′ s appearance at the same time.

Yichexun On April 22nd, Weibo, the official of Wangwang Automobile, said that Wangwang U8 Off-road Player Edition will be officially launched on April 25th. In addition, we learned that Wangwang U7 will also be released at the same time, and the new car will be positioned as a million-class new energy flagship car, which will be equipped with easy four-way platform technology and provide four wheels and four motors.

Look up to U8 Off-Road Player Edition

Looking up to the U8 cross-country player version, the overall design is not much different from the ordinary version, but it adds an unmanned cabin on board, and is equipped with the original wading hose and AT tires. At the same time, some decorative covers have been added to the front engine compartment cover of the new car to make it look more off-road features. It is worth mentioning that, after the unmanned engine room is added, the height of the vehicle reaches 2034mm, and the width of the whole vehicle is slightly increased compared with the ordinary version, reaching 2095 mm.

In addition, the off-road player version is also equipped with in-vehicle satellite communication. This configuration adopts the industry-leading satellite communication scheme to provide a more complete communication means for vehicle communication. The cross-country player version of satellite communication is deeply integrated with the car, which can support the use of the car and mobile phone terminals, and also support the portability and practicality when leaving the car. And in places where the ground mobile network and fixed network can’t cover, the cross-country player version of satellite communication can also provide two-way voice call and two-way short message communication, so as to realize a safer car-linked network and enhance the active safety capability.

Its roof is equipped with a vehicle-mounted UAV garage jointly developed with DJI, which has four advantages: automatic power connection, auxiliary clamping, intelligent humidity control, waterproof and dustproof. The vehicle-mounted UAV located in the UAV library has six functions: one-button take-off, intelligent power exchange, one-button blockbuster, one-button landing, intelligent return flight and take-off following.

In terms of power, the U8 off-road player version will be equipped with a 2.0T four-cylinder range extender with a maximum power of 180kW; The car will adopt a four-motor four-wheel drive system, with a comprehensive power of 880 kW and a maximum torque of 1280 Nm. The vehicle will be equipped with a 49.05kWh lithium iron phosphate battery pack. Under CLTC working conditions, the pure battery life is 180 kilometers and the comprehensive battery life is 1000 kilometers.

Look up at U7

Looking up at U7, it is positioned as a million-class new energy flagship car. Its appearance adopts the family language of "dimension door", and the whole new car is in a downward posture, which makes its front face more recognizable with the family’s iconic headlight group modeling. In addition, the roof is equipped with a lidar. In terms of body size, the length, width and height of the new car are 5265*1998*1517mm respectively, and the wheelbase reaches 3160 mm. In addition, due to the body flow control technology and the optimized design of several pneumatic accessories, the drag coefficient of U7 is only 0.195Cd.

In terms of power, it is hoped that U7 will be equipped with easy quad platform technology, providing four wheels and four motors, and the maximum power of a single motor is 240 kW. The battery is equipped with lithium iron phosphate battery produced by Xiangyang Fudi Battery Co., Ltd.

[Interpretation of a picture] Huawei has made a "killer" against Samsung. Made in China has made a counterattack!

On 25th, Huawei announced that it had filed an intellectual property lawsuit against Samsung in the Northern District Court of California and the Shenzhen Intermediate People’s Court of China. In this lawsuit, Huawei asked Samsung to compensate Huawei for its intellectual property infringement. What patents are involved in this lawsuit?

In response to Huawei’ s lawsuit, Samsung responded on the 25 th thatIt will "evaluate the lawsuit and safeguard Samsung’s business interests in an appropriate form".Samsung executives in charge of intellectual property rights said that they did not rule out launching a counterclaim against Huawei.

Perhaps in the impression of many people, in the past, China products were always labeled as "shanzhai" and "pirated", and China enterprises were often the defendants in such patent lawsuits. In 2013, Apple teamed up with Microsoft to sue Huawei. In 3 years, Huawei was sued 54 times! What are the chances of Huawei becoming the plaintiff and Huawei v. Samsung?

However, historically, it is a long process to resolve patent disputes between mobile phones. Industry insiders expect that it will take some time for everyone to know whether Huawei can win this lawsuit in the end.

In 2010, Apple filed a lawsuit against HTC.

Nearly two years later, the US International Trade Commission found that HTC infringed Apple’s iPhone patent and imposed an import ban on smartphones involving this patent. In 2012, HTC settled with Apple.

In 2011, Apple filed a patent lawsuit against Samsung.

After years of repeated tug-of-war, in December 2015, Samsung agreed to pay Apple a patent loss of up to $548 million.

In 2014, Ericsson sued Xiaomi in India.

Ericsson sued Xiaomi for allegedly infringing eight patents of ARM, EDGE, 3G and other related technologies, which eventually led to some mobile phone products of Xiaomi not being allowed to "enter" the Indian market.

Why is patent so important to communication companies? Do you know how many patents are involved behind a smart phone?

No wonder there is a saying circulating in the enterprise circle: "Third-rate enterprises sell coolies, second-rate enterprises sell products, and first-class enterprises make patents." In recent years, enterprises in China have devoted themselves to technology research and development, and already have strong technical strength.

According to professional analysis, China’s mobile phone brand has entered a period of high growth overseas, and "Made in China" has begun to counterattack and become a "China brand", which has been widely recognized by the world.

No matter who wins or loses this intellectual property lawsuit, it can at least prove that China Manufacturing is no longer synonymous with "shanzhai" and "low quality", but also has the ability to innovate. It is the premise of all development for enterprises to establish intellectual property awareness and strive to create a good environment for intellectual property protection. Only by finding a breakthrough in technology and patents and forming enough differentiated competitive advantages can they occupy a place in the future market!

10 warm-hearted stories, take you to feel the power behind the "China Speed" ……

exactly

Hands covered with mud, shoulders soaked with sweat,

Clear and firm eyes, kind and brave heart.

They have no steel body, but they are extremely powerful.

They have no grandiloquence, but they work hard.

There is no infrastructure fanatic here, only Chinese power!

At present, China Construction has installed Wuhan, which is participating in the construction.

Vulcan Mountain and Thunder God Mountain hospital have been put into use,

In the face of the epidemic, China construction and installation forces assembled in the line of fire.

Rushing to the front and fighting on the "epidemic" line,

Their Wuhan war "epidemic" will come to an end temporarily.

Behind this life-and-death race with the epidemic,

It is the builders who have paid hard work and strength.

They don’t pay, they don’t give up day and night, they are ordered in danger,

Go to the hardest, most tiring and most dangerous front,

Casting a new fortress for epidemic prevention,

They are ordinary heroes of this era!

Today, let’s walk into the story behind "China Speed"

……

Liu Xu: I’m not tired. I’ll just sleep for a while.

___

On the morning of February 11th, a circle of friends of Wang Junsheng won numerous praises. Liu Xu, a labor worker who fought all night for 28 hours, fell asleep at the scene. "They are not online celebrity, but they are the people who can bear hardships the most. There is nothing that can’t be done with ventilation and water and electricity at the scene. They are the most lovely people. I am proud of these workers and brothers." Wang Jun is full of regrets. When Liu Xu was mentioned, all the managers at the scene gave him a thumbs up, but he always said, "Nothing, it’s okay to do your best." Liu Xu, a 32-year-old native of Huangmei County, Hubei Province, was the first to arrive at the construction site of Raytheon Mountain together with the China Construction and Installation Unit. After staying up all night, he turned to the Huoshenshan Mountain for support the next day, and returned to Raytheon Mountain to help with the finishing work after the delivery of the Huoshenshan Mountain.

He is Luo Wenhao’s right-hand man with many years of construction experience in the Vulcan Mountain project. "I have participated in many projects, and it is the first time that it is so urgent." Due to the urgent construction period and shortage of labor resources, the assembled labor team may not be professional counterparts. In order to ensure the construction quality, he should fully disclose with every worker before the construction, and there should be no omissions in every link from explaining drawings and personnel scheduling to the handover of the working face. The on-site construction area is large, and a large amount of materials must be lifted by the workers themselves. "It takes four or five hundred meters to carry it back and forth once, and tens of thousands of steps a day are commonplace." Liu Xu said airily.

During the construction of Vulcan Mountain, he was caught in several heavy rains, and the scene of everyone working in the rain made him remember deeply. "The rainy road is not easy to walk. You have to wring your pants and shoes to continue your homework. Wet feet on rainy days, sweaty feet on sunny days, and feet are often soaked. " Mentioning the hard work, he smiled and said, "I wouldn’t come here if I was afraid of being tired!" We brothers can come to the scene because we hope that the hospital can be built as soon as possible, and it is worthwhile to work hard! "

__

 

Defeng Chen: Children who grew up in the countryside are all right.

___

Squatting on the material box in the corner, I simply took a few mouthfuls of lunch, and Defeng Chen climbed up the roof to inspect the finishing work of the HVAC system. This is the eighth day that he fought with everyone in Wuhan "Two Mountains" Hospital. He ate, lived and worked with everyone every day, but Defeng Chen, deputy secretary of the Party Committee, secretary of the Discipline Inspection Commission and chairman of the trade union of China Construction and Installation Group, was very practical in his heart.

In those days, it was rainy and rainy in Wuhan, the construction site was full of water, muddy and slippery, and the cold wind and rain hit the face, but the scene was in full swing. Colleagues advised Defeng Chen to take a rest first. "Don’t worry about me, everyone is working against time. I want to keep an eye on the progress, coordinate personnel and pay attention to everyone’s safety!" His firm eyes can’t hide his tiredness.

With the delivery of the two hospitals, the construction personnel at the installation site of Zhongjian are preparing for the final maintenance and withdrawal work. In addition to supervising the progress, safety and quality of the project on the spot every day and assisting in coordinating various resources, Defeng Chen also cares about understanding the psychological dynamics of the workers from time to time, constantly encouraging the team and boosting confidence.

Late at night, Defeng Chen was still on the construction site and conducting various inspections at the headquarters. He didn’t return to his residence from the construction site until after 1 am, every day. "Children who grew up in the countryside, this is no problem!" A simple word hides great energy.

In order to give full play to party member’s vanguard model and the role of the party organization as a fighting fortress, China Construction and Installation quickly set up a temporary party branch, and Defeng Chen awarded the flag to the commandos on the spot. "Stand up at a critical moment, turn back when the masses need it, perform their duties, and it is the duty and duty of party member cadres to charge ahead!" Defeng Chen encouraged everyone.

When China Construction Installation successfully completed the assignment task and the workers were preparing to leave the site for isolation, Defeng Chen noticed that other Chinese construction brothers were still fighting in other working faces. Defeng Chen immediately arranged manpower to help his brother units complete various projects. "At the critical moment, we must not slack off, and we will definitely complete the tasks entrusted to us by the party and the people from the beginning to the end!" After the delivery of the hospital, Defeng Chen is still concerned about the payment of workers’ wages, the withdrawal of the field and the follow-up guarantee of the project.

__

 

Yu Junchao: a warm-hearted "contractor"

___

Yu Junchao, a 50-year-old party member, is the head of the 168 Construction Engineering Company of China Construction Installation Cooperative Labor Service Company. On the afternoon of January 27th, after receiving the call for aid construction, Yu Junchao and all 11 team members of the company immediately arrived at the scene. "Many workers volunteered to take part in the war, and soon an 83-person labor force was assembled at the scene of Raytheon Mountain." Yu Junchao was very moved, and everyone gave up the opportunity of reunion to go to Han to support the construction, which strengthened his confidence in doing a good job in the project.

Yu Junchao and his team are warm-hearted. When they first entered the site and were not assigned construction tasks, they took the initiative to help other builders carry logistics materials. On the first day of entering the site, they completed the construction tasks of laying drainage pipes and "two cloths and one membrane" for 12 hours. During the construction period, Yu Junchao led the team to fight all night, and only rested for 2 hours every day during the busiest time. He completed the ventilation and drainage tasks on the 15th and 16th floors of Raytheon Mountain Area 2 and the 6th floor of Area A with high standards, which won everyone’s praise.

__

 

Gu Jianbing: the "Commander" of the whole battle

___

Command team, material allocation, logistics support … Gu Jianbing, Party branch secretary of China Construction and Installation Beijing Company, is both a commander and a combatant, and always carries out management to the end of details. On-site inspection was conducted at one or two in the morning, and the construction quality was comprehensively checked. After returning to his residence, he was assigned to work the next day. Gu Jianbing could not fall asleep until four in the morning. Three hours later, he appeared on the construction site on time to guide the labor team to make handover and make thoughtful arrangements for installation tools, technology and working face. During the day, the working face is fully spread out, the coordination workload is huge, and the intensity of work day and night makes Gu Jianbing’s voice hoarse all the time.

The sudden construction task has also brought many problems. Hospital construction needs manpower, and the supply of building materials is even more urgent. He asked for help and mobilized everywhere, and several cooperative labor service companies immediately gave support. Suppliers in Wuhan building materials market also took the initiative to supply building materials at the lowest price. Gu Jianbing also received rubber and plastic insulation materials donated by suppliers. The branches of China Construction and Installation also responded positively. In just two days, nine brother units quickly supported nearly 30 managers and more than 300 laborers. In this way, in one day, all the building auxiliary materials arrived and all the personnel were in place, which solved the urgent need.

During the critical period of work-grabbing, all the staff fought almost all night. Gu Jianbing had to arrange the production schedule, safety and quality, and at the same time, he had to keep in touch with the labor service team at all times, so as to relieve the fatigue of the staff and arouse the enthusiasm of the workers. During the construction, due to the narrow construction space in the ward, Gu Jianbing led the team to take local materials, opened up a small processing area on site, and prefabricated the water pipes in advance, which effectively improved the construction efficiency.

The "Huolei" hospital has been put into use one after another. At this moment, Gu Jianbing continues to run around in organizing personnel to withdraw from the field, isolate and debug and maintain the hospital in the later stage. "It’s nothing if we can successfully complete the tasks assigned by the state and the people and get the patients treated as soon as possible!" Gu Jianbing said.

__

 

Wang Hui: There are always more ways than difficulties.

___

Wang Hui, head of electrical technology of Wuhan Thunder God Mountain hospital Medical Technology Building. The site construction environment is complex and crowded. The first thing Wang Hui did after entering the site was to quickly organize workers to carry out safety and epidemic prevention and control education, and distribute epidemic prevention supplies to improve workers’ safety awareness.

The construction period is tight and the task is heavy. If we follow the established drawings and the conventional installation process, we may not be able to catch up with the construction period. Wang Hui analyzed the actual situation on site and improved the design on the premise of ensuring the function and quality, such as installing formal lighting equipment in advance to avoid the delay of the construction period caused by disassembling temporary lighting equipment after the project is completed; After optimization, the original ceiling lamps were changed to wall-mounted installation; The lighting trunking originally needed to be equipped with a separate bracket. Wang Hui skillfully grafted the existing lighting bracket to the built pipeline bracket, which not only facilitated the subsequent threading, but also improved the construction efficiency.

Through Wang Hui’s "small creation", the installation method has been optimized, and the construction period and cost have been greatly saved. "The method is always more difficult than it is!" Wang Hui always encourages everyone like this.

__

 

Wang Junsheng: A "Big Butler" who takes care of everything.

___

Wang Junsheng is the front-line commander of Wuhan "Two Mountains" Hospital. This "big housekeeper" has been fighting with his brothers for more than ten days at the scene. From the construction arrangement, labor dispatch, personnel management and logistics support, he must personally ask questions.

Before the start of construction, Wang Junsheng reversed the construction period, made a good road map, unified planning, organization and coordination, and made a good job of interweaving processes and processes to ensure that everyone was coordinated and gave full play to their professional strength. He also called construction workers in advance to explain the detailed installation sequence of each process to the labor teams. Under the overall planning and management of Wang Junsheng, which is accurate to the hour or even minutes, more than a dozen labor teams and more than 300 construction workers closely cooperated to build with high quality, and there has never been any rework on the site.

In addition to construction, Wang Junsheng is equally worried about everyone’s "eating, drinking, living and transportation". He coordinated everywhere and arranged comfortable hotels for the construction workers; In order to avoid the gathering of canteen staff and let everyone "eat with confidence", he took the initiative to contact the delivery of working meals and pay the wages of workers to solve everyone’s worries.

__

 

Cai Juntao: Create opportunities without opportunities.

___

Cai Juntao is the leader of a company’s expedition to Wuhan, and also the electromechanical director of Thunder God Mountain hospital Medical Technology Building. Create the working face, arrange the working procedure reasonably, find the construction equipment, and arrange the team to enter the site … … Hundreds of phone calls a day have become commonplace for Cai Juntao, which has turned him into a magnetic "subwoofer".

When he first arrived at the scene, difficulties came to him. What bothered him most was that the internal structure of the medical technology building was complex, and the construction unit had many cross-operations. What should I do if I wanted to catch up with the progress but didn’t have a working face? After inspecting the site, Cai Juntao decided to adopt the assembly construction method of off-site prefabrication and on-site installation, hand over one working face and install one immediately, and never delay the construction period!

Finally, after several days of hard work, the medical technology building was delivered as scheduled. Cai Juntao sleeps only 2 hours a day on average. He often misses his meal time because he is dealing with on-site work, so he can only fill his hunger with instant noodles. He and his colleagues call each other ‘ Iron man ’ Brother. "Time is life! Eliminate all difficulties, pay close attention to construction, and create opportunities without opportunities! " This is what Cai Juntao said the most.

__

 

Tamia Liu: No matter how tight the time is, the quality will never be discounted.

___

Tamia Liu, a HVAC engineer in China Construction Installation International Engineering Branch, as an "overseas", spent the first Spring Festival with his family in China in four years, but it took him less than 90 minutes from receiving the notice of supporting the construction of Raytheon Mountain to arriving at the site.

The amount of on-site work is large and the construction period is tight, but the negative pressure requirement of the infectious disease isolation ward is high. "No matter how tight the time is, the quality must not be discounted!" Tamia Liu is responsible for the installation and debugging of three negative pressure isolation wards. For the installation of large-scale equipment and room branch pipes on the roof, Tamia Liu decided to adopt modular assembly, which can be installed in place at one time, while ensuring the tightness of the joints of air ducts and accessories. He led the team to work closely with the strong and weak electricity departments, and achieved the one-time test of single machine and system linkage.

After nearly 40 hours of continuous operation, all three negative pressure isolation wards in charge of by Tamia Liu were successfully debugged at one time and handed over to the hospital department smoothly. These wards were promoted as construction models in the whole project.

__

 

Li Guanjun: Bite down pieces of "hard bones"

___

Li Guanjun, who was supposed to look after her 2-month-old baby at home during the Spring Festival, signed up as a security administrator in Thunder God Mountain hospital. At the site, he should not only be responsible for safety supervision, but also coordinate the cross-operation of various teams to ensure the safety of personnel and construction in the jurisdiction.

The construction site of Raytheon Mountain is more complicated than previous chemical projects. It covers not only more than a dozen professional systems such as pipeline pre-burying, water supply and drainage, fire fighting, power supply and distribution, ventilation and air conditioning, but also the construction of buildings 15 and 16, which is under the responsibility of "Artisan Brothers Company" of Li Guanjun’s China Construction and Installation Engineering Company, which has a tight construction period and needs to work all night.

The ventilation and installation of 12 rooms in Building A16 must be completed within 10 hours, which is another hard bone. When receiving this task, Li Guanjun has been working continuously for 14 hours, but the ventilation installation not only requires extremely high tightness, but also the installation quality is directly related to the air quality of the ward, so there should be no carelessness. He quickly assembled the team and divided it into five groups by assembly line. He entered the field at 7 pm and worked until 5 am the next day. After a night of fierce fighting, he finally completed the task.

__

 

Luo Wenhao: the "New Daddy" in Two-Front War

___

As the front-line deputy commander of the "Two Mountains" hospital project, Luo Wenhao, after receiving the task, simply told his wife who was about to give birth, and arrived at the construction site of Raytheon Mountain in the early morning of January 28th. The first night when he arrived at the construction site, he worked all night. Luo Wenhao led the workers to stay up all night for 12 hours to complete the task of laying "two cloths and one membrane" and laying drainage pipes. The temperature dropped sharply in winter night, and it rained again. Wherever he went, it was muddy and bumpy. Luo Wenhao’s feet seemed to be stepping in the ice hole and he was cold all over. The workers were also very tired, working for 25 hours, all covered with dust.

On January 29th, the project received the task of emergency support for the construction of Vulcan Mountain. He volunteered to lead the workers to quickly turn to the battlefield of Vulcan Mountain for full support, and successfully completed the ventilation and installation project of Buildings 1, 3 and 4. When he was most nervous, he led nearly 200 workers to fight day and night alone. From February 3 to 6, he neglected to contact his family and completed the installation of nearly 4,000 square meters of ventilation pipes in Building 4 for four days and three nights.

On the morning of February 7th, his wife gave birth to her daughter by caesarean section. Exhausted Tam Hao cried with joy on the phone. He named her "Yuan Han" to commemorate this experience of aiding Han. After the Vulcan Mountain project was put into use, Tam Hao, who could have rested, led the workers to Raytheon Mountain to coordinate and command the project closing, debugging and maintenance.

__

Every minute counts, and the mission will be achieved.

It is these kind, brave, ordinary and selfless people,

Injected into the battlefield in the cold winter

Warm and powerful power.

Thank them,

Let this once lush land come back to life.

……

[Video] The passenger’s mobile phone was fined by the police, 200 yuan.

    CCTV News:Click to watch the video > > >







    Police officers found obscene videos on mobile phones when checking tickets.


    Yesterday morning, as soon as Tang Shanghai and his friend Chen Haijun returned to Chongqing from Huaihua, they introduced to reporters that Tang Shanghai was fined by a police officer on September 18th for storing a yellow video on his mobile phone.


    According to reports, at 10: 30 am on September 18th, Tang Shanghai, who lives in Loufang Village, Taihe Town, Hechuan District, and his friend Chen Haijun took the K531 train from Chongqing to Hangzhou to Huaihua. At 1 o’clock in the morning on the 19 th, a policeman began to check tickets in the carriage.


    "We took out tickets, wallets, mobile phones, etc. from our purses for him to check." Chen Haijun said that the policeman found that Tang Shanghai’s mobile phone was the same style as the one he used, so he opened it without authorization and skillfully checked various functions. Unexpectedly, the policeman found that there was a yellow video in the mobile phone. "Why do you have yellow videos on your mobile phone?" The policeman’s loud questioning made the surrounding male and female passengers stare at Tang Shanghai. "I was blushing and my neck was thick, and I felt ashamed." Tang said that he is over 40 years old, so he often watches obscene videos. He was afraid that passengers would think he was lewd.


    Second, the mobile phone comes with porn, and the police call 500 yuan for punishment


    Subsequently, the policeman ordered him to take his mobile phone and followed him to the restaurant carriage. After handling four or five fare evasion passengers, the police took him to an office. Tang said that he always explained to the police that he didn’t download the obscene video, but that when he bought a second-hand mobile phone, it had a yellow video of about 4 minutes on it, and he didn’t show it to anyone. However, the police still demanded a fine for 500 yuan on the grounds that Tang copied and disseminated obscene videos privately, and said: "You can do it without paying a fine. When you arrive at the next station, you will be handed over to the local station police station for administrative detention."


    "I was scared when I heard it, and I quickly pleaded with him." Tang said that he begged for a long time, and finally the policeman still fined him 200 yuan and asked him to write down the inspection book on the spot.


    Think that improper handling of passenger telephone complaints


    At 2 o’clock in the morning on the 19th, Tang Shanghai and his friend Chen Haijun, who were more and more wrong, immediately complained to the police detachment of the Public Security Department of Hangzhou Railway Branch of Shanghai Railway Bureau that the police had not handled it properly. At about 6: 50 in the morning, Fang Instructor of the Police Detachment of the Public Security Department of Hangzhou Railway Branch of Shanghai Railway Bureau took the initiative to call Tang and Chen and explained that their police handling was legal and correct, but apologized to Tang Shanghai for the way and attitude of police handling.

[Preventing drowning and keeping safe] @ Everyone, there is no "safe season" for preventing drowning, and winter can’t be careless!

safe

complete

Prevention of drowning in winter

Don’t forget safety when you go out to play ~

Although the present has entered the deep winter.

But the string of drowning prevention still cannot be relaxed!

Because of drowning, there is no season!

The following cases should be taken as a warning.

But don’t know

On December 24, 2023, in Yuncheng, Shanxi, a boy accidentally fell into the park lake while playing on ice. After struggling in the cold lake for a while, he had no strength. At the critical moment, Yao Longnian, a good-hearted man, broke the ice and rescued the boy with his friends.

On December 23, 2023, a 6-year-old boy accidentally fell into an ice hole while playing by a pond near his home in Jining, Shandong Province. The situation was critical. After hearing the noise, the good-hearted people passing by rushed to rescue the boy ashore.

On December 16th, 2023, a 7-year-old boy’s dice fell into a canal in Jingmen City, Hubei Province, and he went into the water to fish. As a result, he slipped into a canal with a water depth of three or four meters and drowned. It happened that Dai Su Heng, who was running, saw it and was rescued by him. Then Li Xin, the owner of the nearby noodle restaurant, became a child to do cardiopulmonary resuscitation and successfully woke him up …

On November 26th, 2023, in Lanpo Lake, Kuancheng District, Changchun City, Jilin Province, a boy suddenly fell into the ice water that had not been completely frozen while playing on the ice! At a critical juncture, an enthusiastic man jumped into the ice hole regardless of the cold weather and pushed the boy onto the ice. Finally, with the help of other enthusiastic people, both the boy and the man who saved the life successfully escaped from danger.

This case is also reminding us all that drowning prevention in winter cannot be relaxed!

These six tips let children remember-

1. Don’t play near the waters marked "No Swimming".

2. Don’t walk, play, skate or pick up things on the ice in dangerous waters such as ponds and reservoirs.

3. If you find your friends playing on the ice, you should remind and dissuade them in time. If the dissuasion fails, you should immediately tell your teacher or family.

4. If you want to skate, you should go to a regular skating place accompanied by an adult, and you can’t leave the adult’s monitoring sight all the time.

When you go out, you should tell your parents where to go, with whom and when to come back. It is strictly forbidden to invite you out to play privately.

6. Improve safety awareness, and immediately avoid or report to parents, teachers or the police when unsafe factors or dangerous situations are found.

About drowning prevention,

This knowledge is also going to tell children-

Safety is no small matter!

May the children get through it.

A safe and happy holiday!

Original title: "Everyone, there is no" safe season "for drowning prevention, and winter can’t be careless! 》

Read the original text

Medical anti-corruption: the mission of the new era in the sun

In the historical process of the new era, China’s socialist cause has flourished and people’s living standards have been continuously improved. However, in this process, corruption still exists, especially in the medical field, which not only damages the vital interests of the masses, but also seriously infringes on social fairness and justice. Therefore, it is particularly important to strengthen medical anti-corruption.

Medical anti-corruption must first strengthen the supervision of medical institutions. Medical institutions are holy places to heal the wounded and rescue the dying, which should be the place full of positive energy. However, in recent years, some medical institutions and their staff have deviated from medical ethics and pursued the maximization of interests, which has led to the tension between doctors and patients. In this regard, we should strengthen the internal and external supervision of medical institutions, improve the system construction, and ensure the normal operation of medical institutions.

Secondly, medical anti-corruption should severely punish corruption. In view of the problem of corruption in the medical field, we must resolutely punish according to law, and all medical institutions and individuals involved in corruption, bribery, power rent-seeking, false reimbursement and other acts must be dealt with seriously and will never be tolerated. At the same time, it is necessary to strengthen the case review, dig out the deep-seated reasons behind corruption, and provide useful reference for the reform in the medical field.

In addition, medical anti-corruption needs to strengthen publicity and education. We should carry out in-depth medical ethics education, so that the majority of medical staff can establish a correct world outlook, outlook on life and values, bearing in mind the purpose of serving the people. At the same time, it is necessary to strengthen the building of a clean and honest party style, raise the awareness of honesty and self-discipline of cadres in party member, and create a clean and healthy medical environment.

Finally, medical anti-corruption should give full play to the role of social supervision. We encourage the public to actively participate in medical anti-corruption and expose corrupt behaviors in the medical field through public opinion supervision and reporting. In addition, it is necessary to establish a medical anti-corruption information sharing platform, strengthen cooperation and communication between departments, and form an anti-corruption pattern in which the whole society participates.

In short, medical anti-corruption is an important task in the new era, which is related to the vital interests of the people and social fairness and justice. Under the new situation, we should take the spirit of the 20th National Congress of the Communist Party of China as the guide, carry out in-depth medical anti-corruption struggle, and strive to create a good medical environment for realizing the goal of common prosperity for all people.

Wang Xing couldn’t help it, so he bet heavily on AI.

On March 8th, Wang Xingyu, the co-founder of Meituan, announced on WeChat that he would personally participate in the first financing of the company "Beyond Light Years" founded by Wang Huiwen and serve as its director. Wang Xing is also preparing to join the entrepreneurial wave of AI.

"The AI ? ? big model makes me both excited about the huge productivity that will be created soon and worried about its future impact on the whole world." Wang Xing said: "Lao Wang and I have been on the road to entrepreneurship for nearly 20 years. Since he is determined to embrace this big wave, I must support it."

Prior to this, Wang Huiwen, the former founder of Meituan, announced on February 13th the establishment of Beijing Lightyear Beyond Technology Co., Ltd., dedicated to creating China OpenAI. Wang Huiwen said that he planned to invest 50 million dollars in his own name, with an estimated value of 200 million dollars. Among them, 75% of the company’s equity was used to introduce top research and development personnel.

ChatGPT, is setting off a new technical competition about AI. It is an AI dialogue software developed by OpenAI Company in the United States, and its intelligence is comparable to that of human beings. As soon as it was released, it was very popular all over the world in the form of the speed of light. Since February, both Microsoft and Google have increased their investment in artificial intelligence. Microsoft has released a new generation of Bing and Edge based on ChatGPT technology. Google also launched Bard, which is based on Google’s LaMDA big data model.

"I don’t understand AI technology at present and I am studying hard." Wang Huiwen said before that top venture capital companies have prepared $230 million for the next investment, and the project is not to worry about money. On the recruitment requirements of the company, he said, what we want is the top research and development personnel in the industry, who have a strong belief in the transformation of artificial intelligence and firmly ensure that AI benefits mankind.

Wang Huiwen also posted a message on social media: "I will enter the artificial intelligence track, and I will take out 50 million US dollars to join the team, regardless of salary and position, and seek a team."

Digital Economy Empowering and High-quality Development The 5th International Financial Science and Technology Forum opened in Chengdu

At present, financial technology has become a new kinetic energy of the economy, and it is one of the indicators to measure the economic development level of various countries. How financial technology can empower high-quality economic development has also become a hot topic of global concern.

On November 5th, the 5th International Financial Science and Technology Forum opened in Wenjiang District, Chengdu. More than 150 top guests from the world’s political, industrial, academic and research circles once again gathered in Chengdu to analyze the new direction, new track, new trend and new path of China’s economic, financial and technological development around the theme of "digital economy enabling high-quality development". The forum will inject financial power into promoting high-quality economic and social development through more than 10 activities.

The Red Star reporter learned that this two-day forum was sponsored by Southwestern University of Finance and Economics, Chengdu Local Financial Supervision Administration and Wenjiang District People’s Government of Chengdu, and hosted by the School of Finance of Southwestern University of Finance and Economics and China Institute of Finance, Southwestern University of Finance and Economics International Joint Laboratory of Financial Technology, and Southwestern University of Finance and Economics Sichuan Key Laboratory of Financial Intelligence and Financial Engineering.

Vision: Financial Technology Helps Digital China Construction

Today, China’s economic strength has achieved a historic leap, and its total economic output ranks second in the world.

High-quality development has become the primary task for China to build a socialist modernized country in an all-round way, and we must persist in putting the focus of economic development on the real economy.

After several rounds of discussions, the participating experts agreed that financial technology, with its characteristics of integration, accuracy, intersection and openness, has become the key to providing financial support, inciting the capital market and technological innovation, effectively serving the development of real economy and digital economy, helping to strengthen advanced manufacturing industry, realizing high-quality economic development and speeding up the construction of a "manufacturing power" and "digital China".

2022 is a year in which China’s digital economy is fully developed. During the "14th Five-Year Plan" period, China’s digital economy turned to a new stage of deepening application, standardizing development, and universal sharing.

Experts attending the meeting said that, based on this background, this forum is held under the new development pattern of digital economy empowerment. Global financial experts jointly review the process of financial technology innovation, discuss the present situation of financial technology development, and look forward to the wonderful prospect of technology in helping financial service entities, preventing financial risks, and building a digital China and a green China, which is of great significance for forming a wider, wider and deeper opening-up pattern.

Four highlights: groundbreaking technology gives birth to new formats

This forum is carefully prepared and boldly innovated on the basis of previous sessions, and this year presents four new points of view.

The first highlight is that a series of pioneering financial technology systems and platforms were released for the first time at the opening ceremony on November 5th, including AI engineering KubeAI platform, Quant Plus quantitative analysis platform, enterprise risk intelligent identification and early warning system, etc. This is the first time that Southwestern University of Finance and Economics has shown the technical "hard power" of financial universities to the industry, which will bring new products, new models and new formats to the financial technology industry and help enterprises to transform digitally.

The second highlight is that the 5th Chengdu August 80 Global Financial Technology Product Design and R&D Competition officially started, and the competition teams of eight top universities in the world gathered in Chengdu again. The competition will further deepen Industry-University-Research’s cooperation, focus on "new finance and economics" talent training, innovate and standardize the contents of the competition, and innovate the talent training methods.

At the same time, at the Digital Economy Empowerment Financial Technology Innovation Forum held on the same day, the founders of financial technology companies such as Bingjian Technology, Daoke DaoCloud and Kuanbang Technology started a dialogue, focusing on the promotion of enterprise credit evaluation by artificial intelligence technology, AI empowerment investment and other topics to explore the new direction of digital economy development.

In addition, on November 6th, a headmaster’s forum will be held, which will be changed from a closed meeting to an open meeting for the first time. Southwestern University of Finance and Economics will set up a platform to invite the principals and deans of 16 mainstream universities in China to discuss and share new modes, new experiences and new methods of talent cultivation in universities.

Red Star Journalist Wu Huayu According to Wenjiang District

Editor Chai Chang

(Download Red Star News, and report the prize! )

How much did Zhu Ting actually get when he started his Italian league career with an annual salary of 1.2 million? Numbers are touching.

Of course, this is not all the expenses that Zhu Ting needs to deduct. Zhu Ting also needs to pay 1.5%-3% of the agent fees and some miscellaneous expenses of the players’ union. Moreover, because of the talent cultivation, Zhu Ting also needs to pay part of the salary to the Henan mother team. After a full calculation, Zhu Ting’s 1.2 million euros will actually be deducted by nearly 50%, which means that Zhu Ting actually gets 600,000 euros (equivalent to about RMB 4.2 million). But now Zhu Ting obviously doesn’t care about this. To tell the truth, if she wants to make money, Zhu Ting will stay in China. Her annual salary is at least over $1 million, and her income is more than that of studying abroad. Moreover, at home, Zhu Ting has more time to attend business activities, which is also a large amount of income. But for 28-year-old Zhu Ting, she deserves her last chance to fight for her dream. Zhu Ting also knows that if she wants to lead the China women’s volleyball team out of the trough, she must become.

I put the essence of Python coroutine Pa was clean!

This article is a large amount of information, from IO multiplexing, to use the generator, then async, await realization of the principle behind it, in simple terms, the analysis was very thorough, very hardcore!

Two days for personal reasons because it did not touch a long time to write a point of Python, which involves "coroutine" program, the last time out, it is Web framework tornado unique feature, now we have async, await keyword support . Thought about its implementation, reviews the evolution of these years, feel a little bit mean.

They are single-threaded, why the original code with the low efficiency of the async, await add some asynchronous library becomes higher efficiency?

They are single-threaded, why the original code with the low efficiency of the async, await add some asynchronous library becomes higher efficiency?

If you do Python-based network or Web development, this question has puzzled, this article attempts to give an answer.

Before beginning 0x00

Firstly, Not take you browse the source codeAnd then tell you the control to achieve the original code Python standard. Instead, we will set out from the real problems, think of solutions to the problem, step by step evolution path experience solutions, and most importantly, hoping to gain knowledge in a systematic upgrade process.

This article only provides an independent direction of thinking, does not follow the historical and current actual implementation details.

Secondly, you need to read this article familiar with Python, at least understand the concept generator generator of Python.

0x01 IO multiplexing

This is the key to performance. But we are here only to explain the concept, its implementation details is not the point, which we understand Python coroutine enough, as already know enough about, advances to 0x02.

First, you want to know all the network service program is a huge loop, your business logic can be called at some point in this cycle:

defhandler (request):

WHILETRUE:

# Get a new request

request=accept

# To get users to write business logic function according to the route map

Handler=GET_HANDLER (Request)

Handler (Request)

Imagine your Web service of a handler, after receiving a request requires a response to the results of API calls.

For the most traditional network applications, your API requests issued to wait for a response after this time the program stops running, even new requests have to get in after the end of the response. If you rely on an API request packet loss seriously, especially in response to slow it? That will be very low throughput applications.

Many traditional Web server using multi-threading technology to solve this problem: the run handler is placed on other threads, each dealing with a request, this does not affect the new thread blocks request to enter. This problem can be solved to some extent, but for larger systems concurrent, multithreaded scheduling will bring significant performance overhead.

IO multiplexing can be done to solve the problem without the use of threads, it is provided by the operating system kernel functions, we can say specifically for this type of scenario for us. Simply put, your program encounters network IO, tells the operating system to help you staring at, while the operating system gives you a way to make you can feel free to get what IO operation has been completed. like this:

# # 操作 系统 复 复 示 示 例 代代

# Register the ID and type of IO operations to the operating system IO

IO_REGISTER (IO_ID, IO_TYPE)

# Get completed IO operations

Events=IO_GET_FINISHED

For (IO_ID, IO_TYPE) INEvents:

IFIO_TYPE==Read:

Data=read_data (IO_ID)

Elifio_Type==Write:

Write_data (IO_ID, DATA)

Gring the IO multiplex logic into our server, probably like this:

Call_backs={}

Defhandler (REQ):

# do jobs here

DefCall_back (Result):

# Use the returned Result to complete the remaining work …

Call_backs [IO_ID]=CALL_BACK

# New cycle

WHILETRUE:

# Get the completed IO event

IFIO_TYPE==Read: # read

Data=read (IO_ID)

Call_back=call_backs [io_id]

Call_back (data)

Else:

# Other types of IO event processing

PASS

# Get a new request

Handler (Request)

Our Handler has returned immediately for the IO operation. At the same time, each iteration will perform a callback over the completed IO, the network request no longer blocks the entire server.

The pseudo code above is only for understanding, and the details are more complicated. Moreover, it is also possible to connect the new request to the IO event from the operating system to the monitor port.

If we split the cycle part with a call_backs dictionary to a separate module, we can get an EventLoop, which is the iOLOOP provided in the Python Standard Library Asynci.

0x02 with generator to eliminate Callback

He focuses on the Handler function written in our business, after having independent iOLOOP, it now becomes like this:

# 业 业 代 代 … …

# Need an API request

Print (Result)

ask_LOOP.GET_EVENT_LOOP.IO_CALL (API, CALL_BACK)

Here, performance problems have been resolved: We no longer need multi-threads to constantly accept new requests in the source, and don’t have to rely on the API response.

But we have also introduced a new problem. The original business logic code is now demolished. The code before requesting the API is still normal. The code after the request API can only be written in the callback function.

Here our business logic has only one API call. If there are multiple APIs, plus the call to Redis or MySQL (their essential is also a network request), the entire logic will be split, this is a burden on business development .

For some languages ??with anonymous functions (right is Java), it may also trigger a so-called "turning hell".

Next, we find way to solve this problem.

We can easily think that if the function can be suspended after running to the network IO operation, it will wake up at the breakpoint after completion.

If you are familiar with Python’s "Builder", you should find that it happens to have this feature:

Defexample:

Value=yield2

Print ("Get", Value)

ReturnValue

g=esample

# 启 启 生器, we will get 2

Got=G.send (NONE)

Print (got) # 2

TRY:

# Anti-start will display "get 4", which is our incoming value

Got=g.send (got * 2)

ExceptStopItemization ASE:

# Builder runs, will print (4), E.Value is the value of generator return

Print (E.Value)

There is Yield keyword in the function, and the call function will get a generator, and a key method for generator can interact with the generator.

G.send (none) runs the generator code until you encounter Yield, and return to the object, that is, 2, the generator code is stopped here until we perform G.send (got * 2) again, The 2 * 2 is also 4 to assign the value Value in front of Yield, and then continue to run the generator code.

Yield is like a door, you can send a thing from here, you can also take another thing.

If Send makes the generator to run until the next yield is over, the Send call will trigger a special exception STOPITERATION, which comes with a property Value, which is the value of the generator Return.

If we convert our Handler to a generator with Yield keyword, run it to The specific content of IO operationReturns, put the IO result back and restore the generator to run, then solve the problem of uncomfortable business code:

# 业 业 代 代 … …

# Need to execute an API request, directly put the IO request information yield

Result=yieldio_info

# Use the result returned by the API to complete the remaining work

Print (Result)

# This function is registered in iOLOOP, used to call back when there is a new request

Defon_Request (request):

Handler=GET_HANDLER (Request)

g=Handler (Request)

# 首 首 启 获得 获得 i 获得

IO_INFO=G.send (none)

g.send (Result)

ask_LOOP.GET_EVENT_LOOP.IO_CALL (IO_INFO, CALL_BACK)

The above example, the Handler code written by the user will not be dispersed into the callback, and the ON_Request function interacts with Callback and IOLOOP, but it will be implemented in the web framework, which is not visible to the user.

The above code is enough to give us inspiration of Callback destroyed with the builder, but there are two points:

  1. Only a network IO is initiated in business logic, but it is often more

  2. Business logic does not call other asynchronous functions (helping), but in practice, we tend to call other levels.

Let’s take a more complex example:

Among them, Request executes real IO, FUNC1, FUNC2 is only called. Obviously our code can only be written:

Deffunc1:

Ret=yieldfunc2 (re)

returnret

Deffunc2 (DATA):

ReturnResult

DEFREQUEST (URL):

# This simulation returns an IO operation, contains all information about the IO operation, where the string is simplified

Result=yield "IOJOB OF% S"% URL

ReturnResult

For Request, we expose the IO operation to the framework through Yield.

for Func1 and func2, calling request, clearly add Yield keywords Otherwise, the request call returns a generator and will not be paused and continue to perform subsequent logic obviously errors.

This is basically that we don’t write asynchronous code in the Tornado framework without Yield from, Aysnc, AWAIT.

To run the entire calling stack, the approximate process is as follows:

  1. Call FUNC1 to get the generator

  2. Call Send (None) Start it gets the result of request ("http://test.com/foo"), or generator object

  3. Send (none) Starts the generator generated by the request, gets the IO operation, registered by the frame to IOLOOP and specify a callback

  4. The Request Builder wakes up in the callback function after IO, and the generator will go to the return statement end

  5. Capture an exception to get the return value of the Request Builder, wake up the last layer of FUNC1, and get a FUNC2 generator

  6. Continue to execute …

Call FUNC1 to get the generator

Call Send (None) Start it gets the result of request ("http://test.com/foo"), or generator object

Send (none) Starts the generator generated by the request, gets the IO operation, registered by the frame to IOLOOP and specify a callback

The Request Builder wakes up in the callback function after IO, and the generator will go to the return statement end

Capture an exception to get the return value of the Request Builder, wake up the last layer of FUNC1, and get a FUNC2 generator

Continue to execute …

Friends who are familiar with the algorithm and data structure encounter such a traversal logic that will be returned, can be recursively used, because the recursive use generator can not do it, we can use the stack, in fact, this is the word "call stack" origin.

With the stack, we can Connect all generators connected in series in the entire call chain to a generatorFor its constant Send, you can continue to get all IO operation information and drive the call chain advancement, and the implementation method is as follows:

  1. The first generator is in the stack

  2. Call the Send, if you get the generator, you will enter the next round iteration

  3. I encountered IO to ask Yield, let the frame sign up to iOLOOP

  4. After the IO operation is completed, the cache result is forth, enter the next round iteration, the purpose is to restore the upper function using IO results.

  5. If a generator is running, you also need to restore the upper function to the upper function.

The first generator is in the stack

Call the Send, if you get the generator, you will enter the next round iteration

I encountered IO to ask Yield, let the frame sign up to iOLOOP

After the IO operation is completed, the cache result is forth, enter the next round iteration, the purpose is to restore the upper function using IO results.

If a generator is running, you also need to restore the upper function to the upper function.

If implemented, the code is not long but the amount of information is relatively large.

It turns the entire call chain to a generator, calling the send, to complete the IO in the chain, complete these IO, continue to push the logic execution in the calling chain until the overall logic ends:

DEFWrapper (GEN):

# The first layer calls the stack

Stack=stack

Stack.push (gen)

# Start a layer-by-layer call

WHILETRUE:

# Get the top elements of the stack

item=stack.peak

Result=none

IFisgenerator (item):

TRY:

# Try to get the next layer call and get it in the stack

Child=item.send (Result)

Stack.push (child)

# Result Restore to NONE

Result=none

# After entering the stack, enter the next loop directly, continue to explore down

Continue

# If you have an end, you will temporarily save the Result, the next step to make yourself out.

Result=E.Value

Else: # o o operation

# # I 操作 操作, Yield, Io will be woken up and temporarily saved after IO

Result=yieldItem

# 走 到 here, this layer has been completed, out of the stack, the next iteration will be a layer of calling chain

Stack.pop

# 没有有 上, the entire call chain is completed, return

Ifstack.empty:

Print ("finished")

ReturnResult

This may be the most complicated part. If you look hard, it is actually as long as you understand that for the call chain in the example above, it can achieve the effect as follows:

W=Wrapper (Func1)

# Will get "IOJOB of http://test.com/foo"

W.send (none)

# 上 上 ojob foo completed the result "bar" incompart, continue to run, get "IOJOB OF http://test.com/bar"

W.send ("bar")

# 上 上 i i b 完成 完成 传 传 传 传 入 入 入 入 入 入 入 入 入 入 入 入 入

W.send ("BARZ")

With this part, the frame will be added to the matching code:

# Maintain a list of ready lists, store all completed IO events, format is (Wrapper, Result)

Ready=

# After using the wrapper package, you can process IO by Send.

g=wrapper (func1)

# Take the start state directly as the result of NONE

Ready.Append ((g, none))

# Let the iOLOOP perform this function each cycle to handle the ready for IO

Ready.Append ((g, result))

# Traversing all already generators, advance it down

Forg, Result InselF.Ready:

# Use the Result to wake the builder and get the next IO operation

IO_JOB=G.send (Result)

# After the IO operation is complete, add the generator to the ready list, wait for the next round of processing.

ask_LOOP.GET_EVENT_LOOP.IO_CALL (

IO_JOB, LambdareSult: Ready.Append ((g, result)

Here, the core idea is to maintain a list of ready-to-read, and IOLOOP is overwhelmed, and the generator that promotes the ready state is run down, and the new IO operation is registered. After the IO is completed, the ready, after several rounds of Ioloop iteration A Handler will eventually be executed.

At this point, we use the generator to write to write business logic to run normally.

0x04 Improved Scalability

If you can read it here, Python’s scope is basically clear.

We have already achieved one Miniature sweeping frameworkThe realization details of the standard library look great here, but the specific ideas are consistent.

Our equilation framework has a restriction, we can only use IO to operate asynchronously, although in the world of network programming and web programming, the block is basically only IO operation, but there are some exceptions, such as I want the current operation Sleep for a few seconds. The use of time.sleep will make the entire thread to block, requiring special implementation. For example, some CPU-intensive operations can be asynchronously through multi-threaded asynchronous, so that another thread notification event has been completed and followed.

Therefore, it is best to decouple an open space with the network, so that the network IO is only one of the scenes, improves the scalability.

The Python official solution is to let the user hand to block the block code. As for the IOLOOP to register IO event or open a thread completely by yourself, and provide a standard "placeholder" FUTURE, indicating that his results wait for the future Yes, some prototypes are as follows:

ClassFuture:

# Set the result

Defset_Result (Result): Pass

# 获取 结果 结果

Defresult: Pass

# 表示 表示 This Future object is not already set up.

Defdone: Pass

# Set the callback function that should be executed when he is set, you can set multiple

Defadd_done_callback (Callback): Pass

Our slight change can support Future, making the scalability stronger. Network request functions for user code:

# 现在 r es es,, 生 生 器 器 器 器 器 器 器 器

#future is understood as a placeholder

Fut=future

Defcallback (Result):

# Assign the placeholder when the network IO completed the callback

Fut.set_Result (Result)

ask_LOOP.GET_EVENT_LOOP.IO_CALL (URL, CALLBACK)

Now, Request is no longer a generator, but directly returns Future.

And for the function of processing the ready list in the frame:

DEFCALLBACK (FUT):

#future is set to be placed in the ready list

Ready.Append ((g, fut.result))

Fut=g.send (Result)

Fut.add_done_callback (callback)

0x05 development and change

Many years ago, when using Tornado, probably only one Yield keyword is available, the sweeper wants to achieve, that is, this idea, even Yield keywords and return keywords can not appear in a function, you want to run after the generator Returns a value, you need to manually Raise an exception, although the effect is the same as Return now, but it is still very awkward, not elegant.

Later, there was Yield from expression. What can it do?

It is popular, it is done what the generator Wrapper is doing the above: Calling link through the stack, it is the syntax of the Wrapper logic.

With it, the same example you can write:

Deffunc1:

# Note Yield from

Ret=yieldFromRequest ("http://test.com/foo")

# Note Yield from

Ret=yieldfromfunc2 (re)

returnret

Deffunc2 (DATA):

# Note Yield from

Result=yieldfromRequest ("http://test.com/"+data)

ReturnResult

# 同 上 上 实 实 实 实 实 r

Then you no longer need the brainless Wrapper function:

g=func1

# Return the first request for Future

g.send (none)

# Continue to run, automatically enter FUNC2 and get the FUTURE inside it

G.send ("bar")

# Continue to run, complete the residual logic of the call chain, throw the stopiteration exception

G.send ("BARZ")

Yield from the entire call chain directly, it is already great, but it is used asynchronous programming or otherwise, and other languages ??have special-top Async, the AWAIT keyword, until the later version puts these content With dedicated Async, AWAIT keyword packaging, it is a more elegant look today.

0x06 summary and comparison

Overall, Python’s native and trip is achieved from two aspects:

  1. Based on IO multiplexing technology, the entire application is non-blocking on IO, achieving high efficiency

  2. Change the dispersed Callback code through the generator into synchronous code, reducing business writing difficulties

Based on IO multiplexing technology, the entire application is non-blocking on IO, achieving high efficiency

Change the dispersed Callback code through the generator into synchronous code, reducing business writing difficulties

There is a language of the object of the generator. Its IO fight is achieved, the evolution of the Java fight is basically exactly, the keyword is the same, and the Future class is the same than the promise.

However, it is different for this, which is different from this sweeping with the degree of GO-named GO, and does not explicitly based on the generator.

If the class ratio, you can implement the geventime of Python, which is the runtime, and Patch off the system calls to access your own Runtime, you come to the scheduling sweeper, gevent is focused on the network, based on network IO scheduling, relatively simple, The GO achieves perfect multi-core support, more complex and perfect, and creates a new CHANNEL new programming paradigm.

Author: Mao bean peanut

Getting Started: The Most Complete Zero-Basic Python Problem | Zero-Based 8 Months Python | Battle Project | Learning Python is this shortcut

Dry goods: crawling Douban short comment, movie "later we" | 38 years old NBA best player analysis | From Wanzhong to Word! Tang Dynasty 3 disappointment | Laughing to see the new Eti Dragon Slay Dollar | Running Question King | Make a massive Miss in Python Sketch | Disc, I am so fire, I use machine to learn to be a mini recommended system movie

Fun: Poultry Game | Nine Mao Hai | Beautiful Flower | Two-Article Python "Everyday Cool" game!

AI: Robot that will be poetry | Give the picture color | predictive income | Solver, I use the machine to learn to be a mini recommended system movie

Gadget: PDF to Word, easy to get forms and watermarks! | One button saves the HTML page as PDF! Goodbye PDF to extract charges! Use 90 lines of code to create the strongest PDF converter, Word, PPT, Excel, Markdown, HTML one-to-date conversion | Make a staple low-cost ticket prompt! | 60 lines of code made a voice wallpaper switch every day to see a little sister! |

Annual explosion case

  • 1). Lying! PDF to Word Use Python to easily get it!
  • 2) Learn Python is really fragrant! I made a website with 100 lines of code, helping people PS travel pictures, earn a chicken leg to eat
  • 3). The first broadcast over 100 million, hot all net, I analyzed the "Sister Taking Wind and Waves" and found these secrets
  • 4) 80 lines of code! Do a Dream in Python with Python
  • 5). You must master the 20 Python code, short and delicate, useless
  • 6). 30 python hambo skills
  • 7). I summarized 80 "rookie Python selection dry goods.pdf", all dry goods
  • 8). Goodbye Python! I want to learn Go! 2500 word depth analysis!
  • 9). Find a dog welfare! This Python reptile artifact is too cool, automatically download the girl picture