Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 如何使用regex在索引之间获取信息? 在穿过含有过冷水滴的云层飞行期间,或在冰冻雾中的地面操作期间,发动机和进气管前缘可能结冰。可能需要防止结冰,因为这些区域结冰会严重限制通过发动机的气流,导致性能损失和发动机可能出现故障。此外,冰脱落并被吸入发动机或撞击进气管内衬的声学材料可能会导致损坏。147 2. 防冰系统必须在特定飞机的运行要求范围内有效防止结冰。该系统必须可靠、易于维护、不会造成过度的重量损失,并且在运行时不会造成发动机性能的严重损失。3.进行分析以确定是否需要防冰,如果需要,则确定将结冰限制在可接受水平所需的热量输入。图13-1所示为涡轮风扇发动机通常用于防冰的区域。4.有两种基本的防冰系统;涡轮喷气发动机通常使用热风供应(图13-2),涡轮螺旋桨发动机使用电力或电力与热冰保护的组合。图13-1考虑用于冰保护的所有区域。图13-热空气结冰保护。148149冰保护空气。如图13-3所示,可通过进气口周围的热油循环来补充保护。热空气系统通常用于防止结冰,被称为防冰系统。电力系统用于分解表面形成的冰,称为除冰系统。热空气系统5。热空气系统为可能结冰的发动机和/或动力装置提供表面加热。转子叶片的保护很少是必要的,因为任何积冰都是通过离心作用分散的。如果定子安装在第一个旋转压缩机级的上游,则可能需要149冰保护。如果鼻锥旋转,如果其形状、结构和旋转特性使得可能结冰是可接受的,则可能不需要防冰。6.防冰系统的热空气通常取自高压压缩机级。通过压力调节阀将其输送至需要防冰的部件。来自前围板防冰系统的废空气可排入压缩机进气口或排放到船外_Python 3.x_Regex - Fatal编程技术网

Python 3.x 如何使用regex在索引之间获取信息? 在穿过含有过冷水滴的云层飞行期间,或在冰冻雾中的地面操作期间,发动机和进气管前缘可能结冰。可能需要防止结冰,因为这些区域结冰会严重限制通过发动机的气流,导致性能损失和发动机可能出现故障。此外,冰脱落并被吸入发动机或撞击进气管内衬的声学材料可能会导致损坏。147 2. 防冰系统必须在特定飞机的运行要求范围内有效防止结冰。该系统必须可靠、易于维护、不会造成过度的重量损失,并且在运行时不会造成发动机性能的严重损失。3.进行分析以确定是否需要防冰,如果需要,则确定将结冰限制在可接受水平所需的热量输入。图13-1所示为涡轮风扇发动机通常用于防冰的区域。4.有两种基本的防冰系统;涡轮喷气发动机通常使用热风供应(图13-2),涡轮螺旋桨发动机使用电力或电力与热冰保护的组合。图13-1考虑用于冰保护的所有区域。图13-热空气结冰保护。148149冰保护空气。如图13-3所示,可通过进气口周围的热油循环来补充保护。热空气系统通常用于防止结冰,被称为防冰系统。电力系统用于分解表面形成的冰,称为除冰系统。热空气系统5。热空气系统为可能结冰的发动机和/或动力装置提供表面加热。转子叶片的保护很少是必要的,因为任何积冰都是通过离心作用分散的。如果定子安装在第一个旋转压缩机级的上游,则可能需要149冰保护。如果鼻锥旋转,如果其形状、结构和旋转特性使得可能结冰是可接受的,则可能不需要防冰。6.防冰系统的热空气通常取自高压压缩机级。通过压力调节阀将其输送至需要防冰的部件。来自前围板防冰系统的废空气可排入压缩机进气口或排放到船外

Python 3.x 如何使用regex在索引之间获取信息? 在穿过含有过冷水滴的云层飞行期间,或在冰冻雾中的地面操作期间,发动机和进气管前缘可能结冰。可能需要防止结冰,因为这些区域结冰会严重限制通过发动机的气流,导致性能损失和发动机可能出现故障。此外,冰脱落并被吸入发动机或撞击进气管内衬的声学材料可能会导致损坏。147 2. 防冰系统必须在特定飞机的运行要求范围内有效防止结冰。该系统必须可靠、易于维护、不会造成过度的重量损失,并且在运行时不会造成发动机性能的严重损失。3.进行分析以确定是否需要防冰,如果需要,则确定将结冰限制在可接受水平所需的热量输入。图13-1所示为涡轮风扇发动机通常用于防冰的区域。4.有两种基本的防冰系统;涡轮喷气发动机通常使用热风供应(图13-2),涡轮螺旋桨发动机使用电力或电力与热冰保护的组合。图13-1考虑用于冰保护的所有区域。图13-热空气结冰保护。148149冰保护空气。如图13-3所示,可通过进气口周围的热油循环来补充保护。热空气系统通常用于防止结冰,被称为防冰系统。电力系统用于分解表面形成的冰,称为除冰系统。热空气系统5。热空气系统为可能结冰的发动机和/或动力装置提供表面加热。转子叶片的保护很少是必要的,因为任何积冰都是通过离心作用分散的。如果定子安装在第一个旋转压缩机级的上游,则可能需要149冰保护。如果鼻锥旋转,如果其形状、结构和旋转特性使得可能结冰是可接受的,则可能不需要防冰。6.防冰系统的热空气通常取自高压压缩机级。通过压力调节阀将其输送至需要防冰的部件。来自前围板防冰系统的废空气可排入压缩机进气口或排放到船外,python-3.x,regex,Python 3.x,Regex,如何使用正则表达式获取1,2.我试着用这个,但是没有用。^\d…*(?=\d.),它给了我一切 (?<!-)\d+\..*?(?=(?:$|[^-]\d+\.)) 印刷品: Item: 1. Icing of the engine and the leading edges of the intake duct can occur during flight through clouds containing supercooled water droplets or during gr

如何使用正则表达式获取1,2.我试着用这个,但是没有用。^\d…*(?=\d.),它给了我一切

(?<!-)\d+\..*?(?=(?:$|[^-]\d+\.))
印刷品:

Item: 1. Icing of the engine and the leading edges of the intake duct can occur during flight through clouds containing supercooled water droplets or during ground operation in freezing fog. Protection against ice formation may be required since icing of these regions can considerably restrict the airflow through the engine, causing a loss in performance and possible malfunction of the engine. Additionally, damage may result from ice breaking away and being ingested into the engine or hitting the acoustic material lining the intake duct.  147

Item: 2. An ice protection system must effectively prevent ice formation within the operational requirements of the particular aircraft. The system must be reliable, easy to maintain, present no excessive weight penalty and cause no serious loss in engine performance when in operation.

Item: 3. Analyses are carried out to determine whether ice protection is required and, if so, the heat input required to limit ice build up to acceptable levels. Fig. 13-1 illustrates the areas of a turbo-fan engine typically considered for ice protection.

Item: 4. There are two basic systems of ice protection; turbo-jet engines generally use a hot air supply (fig. 13-2), and turbo-propeller engines use electrical power or a combination of electrical power and hot   Ice protection  Fig. 13-1  Areas t picall considered for ice protection.  Fig. 13-  Hot air ice protection.  148  149    Ice protection air. Protection may be supplemented by the circulation of hot oil around the air intake as shown in fig. 13-3. The hot air system is generally used to prevent the formation of ice and is known as an anti- icing system. The electrical power system is used to break up ice that has formed on surfaces and is known as a de-icing system. HOT AIR SYSTEM

Item: 5. The hot air system provides surface heating of the engine and/or powerplant where ice is likely to form. The protection of rotor blades is rarely necessary, because any ice accretions are dispersed by centrifugal action. If stators are fitted upstream of the first rotating compressor stage these may require  149   Ice protection protection. If the nose cone rotates it may not need anti-icing if its shape, construction and rotational characteristics are such that likely icing is acceptable.

Item: 6. The hot air for the anti-icing system is usually taken from the high pressure compressor stages. It is ducted through pressure regulating valves, to the parts requiring anti-icing. Spent air from the nose cowl anti-icing system may be exhausted into the compressor intake or vented overboard.
如果你不在乎章节号,你可以这样分割文本:

l = re.split('(?<!-)\d+\. ', s)[1:]

l=re.split(“(?问题不太清楚,但您可能正在寻找
\d\.*?(?=\d\.\124;$)
?请参阅。
re.findall(r'\d+\.*(?=\d+\.\Z);,txt)
hi@41686d6564,是的,这就是我要找的。我可以知道
|
的目的是什么吗?我怎样才能得到所有的而不是第一个呢?@WiktorStribiżew抱歉,但它捕获了everything@user13883454它被称为或,用于“我怎样才能得到所有的,而不是第一个?”-如果您使用的是
findall
,它确实应该返回所有数字。另一方面,Wiktor的模式可能在两个方面优于我的模式。1)
\d+
将匹配一个或多个数字,而不仅仅是一个(由您决定哪个最适合您)。2)
\Z
默认情况下将在字符串的最末端声明位置,默认情况下,
$
在行尾断言位置。
l = re.split('(?<!-)\d+\. ', s)[1:]
l = re.split('(?<!-)\d+\. ', s)[1:]
for i, item in enumerate(l):
    print(f'{i + 1}. {item}')
    print()