有一个很大的文字。里面有我不需要的符号。模式是三个,前两个是重复的,第三个总是(‐, —, “)之一,但另一个可以在没有空格的单词之间'real‐world', 'firm‐worker', 'sectors—together','term “free '
text = "hese are important in the departure, approach, and landing phases of a flight and are integrated with global navigation systems such as inertial guidance and global navigation satellite systems (GNSS). Automatic direction finder (ADF) is based on a nondirectional beacon (NDB) on the ground usually consisting of a simple dipole antenna. Most VHF omnidirectional ranges (VORs) have an additional facility to measure the distance of an aircraft from the beacon, known as the distance measuring equipment (DME). Since instrument landing system (ILS) localizers emit horizontally polarized radiation in the same band as VORs, it is possible to use the VOR antenna to receive the localizer signals on a light aircraft. The ILS is an example of a precision approach aid that provides guidance in both azimuth and height.\n \nFree access is associated with most applications, and most content available on the Internet, to such a point that the term “free access economy” was coined."
怎么做:
text = text.replace("�","")
这是一个编码问题。
问题解决了
请参阅Python 演示。
例如,
“free access economy”事实上,“free access economy”。