查看exe文件源代码_那些你分不清的文件拓展名

文件扩展名也称为文件的后缀名,是操作系统用来标志文件类型的一种机制。

A filename extension, also known as a file extension, is a mechanism used by the operating system to identify the file type.

关于扩展名的误区&特性

Misconceptions about Extensions & Features

- 文件扩展名是一个文件的必要构成部分(X)

The file extension is a necessary component of a file (X).

一个文件可以没有扩展名。只是对于打开文件操作,没有扩展名的文件需要手动选择程序去打开它,而有扩展名的文件会自动用设置好的程序(如有)去尝试打开(是“尝试打开”,而不是“打开”的原因参看下面的第2个误区)。

文件扩展名是一个常规文件名的重要构成部分,但一个文件并不一定需要一个扩展名。

A file can have no extension. Only for the open file operation, a file without an extension needs to be opened by a manually selected program. In contrast, a file with an extension will automatically try to be opened by the program (if any) set to open it (see below for the reason of "try to open", not "open"). (The 2nd misconception).

File extensions are an important part of a regular file name, but a file does not necessarily need an extension.

- 文件扩展名表明了该文件是何种类型(X)

The file extension indicates what type the file is (X)

文件扩展名可以随便更改。把一张图片的扩展名更改为TXT的文件,文件依然存在,但你用文本文档软件却打不开这个文件,因为这个文件的信息没有变,即使还是txt的拓展名,你用图片软件依然能打开它,当然为了方便,我们还是要赋予它正确的拓展名。

File extensions can be changed at will. If you change the extension of an image to a TXT file, the file still exists, but you can't open it with text document software because the information in the file remains the same, even if it is still a TXT extension, you can still open it with image software.

- 文件扩展名不区分大小写(√)

File extensions are not case sensitive (√)

文件扩展名的大小写,系统一般是不予区别的。但也有特殊情况,如gas汇编器(汇编语言汇编器)对于扩展名为".s"和".S"的文件处理方法不一样。

File extensions are not case-sensitive in general. However, there are special cases, such as the gas assembler (assembly language assembler), where the file extensions ".s" and ".S" are treated differently.

常见文件扩展名

Common file extensions

可执行程序/EXE

Executable Program/EXE

可执行程序(executable program,EXE File)是指一种可在操作系统存储空间中浮动定位的可执行程序。在MS-DOS和MS-WINDOWS下,此类文件扩展名为.exe。

这种程序是win系统打开的,即使你系统没有装任何软件,也能打开这种文件。所以一般软件的安装包都是这种拓展名。

常见命名规则有:软件名+版本号.exe;setup.exe。

An executable program (EXE File) is a type of executable program that can be floated in the operating system's memory. Under MS-DOS and MS-WINDOWS, such files have the extension .exe.

This kind of program can be opened by the Win system, even if you do not have any software installed on your system. That's why software installation packages are usually named with this extension.

Common naming rules are software name + version number.exe; setup.exe.

文本文档格式

Text document format

1、TXT格式(扩展名为.txt)

2、PDF格式(扩展名为.pdf)

PDF格式电子书是由Adobe公司于1993年首次提出的。PDF 除了能描述版面外,还具有交互功能(如超级链接、交互式表单等)、页面随机存取及字体仿真描述等特性,而且具有跨平台的优点。因此,PDF既适合印刷出版,也适合电子出版。用Adobe的Acrobat(非免费软件)或者Acrobat Reader阅读,用Foxit Reader(福昕PDF阅读器)、PDF-XChange PDF Viewer、Nitro pdf professional等也可以。

3、word格式(拓展名为.doc/.docx等)

MS-office组件中word的专用格式,大家一定不陌生。

4、PDG格式(扩展名为.pdg)

5、WDL格式(扩展名为.wdl)

6、html

各种浏览器可打开,用写字板打开可查看其源代码。

1. TXT format (extension .txt)

2. PDF format (extension .pdf) 

PDF format was first introduced by Adobe in 1993, PDF in addition to describing the layout, but also has interactive features (such as hyperlinks, interactive forms, etc.), random access to the page and font simulation description of such features, but also has the advantage of cross-platform. Therefore, PDF is suitable for both print publishing and electronic publishing. With Adobe's Acrobat (non-free software) or Acrobat Reader to read, with Foxit Reader (Foxit PDF Reader), PDF-XChange PDF Viewer, Nitro pdf professional, etc. can also be.

3. word format (extended name .doc / .docx, etc.)

MS-office component of the word-specific format, we must be familiar with.

4. PDG format (extension .pdg)

5. WDL format (extension .wdl)

6. html

It can be opened in various browsers and can be opened with a writing tablet to view its source code.

图片格式

Image format

1、jpg/jpeg

优点:体积比png小,打开速度比png快缺点:属于有损压缩,每次保存都会产生数据损失(jpeg artifacts), 故不适合用于多次编辑保存。压缩率过高图像会失真PS:网络上最最常见的格式,也是静态图片(不只是照片)最常用的保存格式。

2、gif

一般作为动态图像格式使用,正在被google的webm格式取代中,不过目前依然是动态图的主流。画质当然呵呵了。

3、png

png采用无损压缩,在多数情况下都可以保留图片里所有像素,还可以储存透明像素。完爆jpg,gif的地方在于失真小,没锯齿;劣势是不支持动画。

4、psd

大名鼎鼎的PS(全称Adobe Photoshop)专有格式。以后会展开详谈,此处只需知道这个类型的文件要用PS软件打开。

1. jpg/jpeg

Advantages: smaller volume than png, faster-opening speed than png Disadvantages: lossy compression, every time you save, you will incur data loss (jpeg artefacts), so it is not suitable for multiple edits to save. PS: The most common format on the web, and also the most common format for saving still images (not just photos).

2. gif

Generally used as a dynamic image format, is being replaced by Google's webm format, but is still the mainstream of dynamic images. Picture quality, of course.

3. png

Png uses lossless compression, which in most cases preserves all the pixels in the image, and can store transparent pixels. It is also able to store transparent pixels. jpg and gif have less distortion, no jaggies, and are disadvantageous because they do not support animation.

4. psd

The proprietary format is known as PS (full name Adobe Photoshop). We will discuss this in detail later, but here it is only necessary to know that this type of file should be opened with PS software.

视频格式

Audio Format

1、mp4:常见视频文件格式

2、rmvb:曾经主流,现已逐渐被mp4取代

3、mov:苹果开发高清格式

4、Flv:流媒体服务常用格式,需要Flash支持,逐渐走向没落

5、avi(常用动画处理软件可播放)、mpg、swf(用flash自带的players程序可播放)

1. mp4: common video file formats

2. rmvb:once mainstream, now gradually replaced by mp4

3. mov: Apple develops HD format

4. Flv: common format for streaming services, requires Flash support, gradually declining

5. avi (commonly used animation processing software can play), mpg, swf (playable with flash's own player's programme)

音频格式

Audio Format

1、mp3:常见有损压缩音频格式,支持320k比特率。

2、wav(媒体播放器可打开)、aif(常用声音处理软件可打开)、wma、mmf、amr、aac、flac。

1. mp3: common lossy compressed audio format, 320k bitrate support.

2. wav (media player can be opened), aif (common sound processing software can be opened), wma, mmf, amr, aac, flac.

压缩文件格式

Compressed File Format

常见:rar(winrar可打开)、zip(winzip可打开)、7z(7z可打开)

iso:比较特殊的高压格式,也叫镜像文件,原来光盘中储存的格式。现常用于win系统安装文件。

arj(用arj解压缩后可打开)、gz(unix系统的压缩文件,用winzip可打开)、z(unix系统的压缩文件,用winzip可打开)

Common: rar (winrar opens), zip (winzip opens), 7z (7z opens)

iso: A special high-pressure format, also known as an image file, that was originally stored on a CD-ROM. It is now commonly used for Win system installation files.

arj (can be opened by unzipping with arj), gz (unix system compressed file, can be opened with winzip), z (unix system compressed file, can be opened with winzip)

e523847ed1297e89c94d26b53bbb12cd.gif