.py3 Python-3-Skript
Text & Quellcode
| MIME-Typ | text/x-python3 |
|---|---|
| Beschreibung | Python-3-Skript |
| Kategorie | Text & Quellcode |
| Signatur (Magic Bytes) | 23 21 20 2F 62 69 6E 2F 70 79 74 68 6F 6E 33 (#! /bin/python3)23 21 2F 62 69 6E 2F 70 79 74 68 6F 6E 33 (#!/bin/python3) |
| Basiert auf | text/x-python |
| Weitere Endungen | .py, .py3x, .pyi |
Häufige Fragen
Was ist eine .py3-Datei?
Eine .py3-Datei ist ein Format vom Typ „Python-3-Skript“ (MIME-Typ text/x-python3).
Womit öffne ich eine .py3-Datei?
Mit jedem Texteditor – etwa Notepad++, Visual Studio Code oder unter Linux gedit und vim. Die Datei enthält lesbaren Text, ggf. Quellcode oder Konfiguration.
Woran erkennt man eine echte .py3-Datei?
Am Dateianfang, der sogenannten Signatur (Magic Bytes): 23 21 20 2F 62 69 6E 2F 70 79 74 68 6F 6E 33 (#! /bin/python3) und 23 21 2F 62 69 6E 2F 70 79 74 68 6F 6E 33 (#!/bin/python3). Unter Linux und macOS prüft file --mime-type example.py3 den tatsächlichen Typ unabhängig von der Endung.
Auf welchem Format basiert .py3?
Technisch ist eine .py3-Datei ein Untertyp von „Python-Skript“ (text/x-python). Programme für dieses Grundformat können die Datei daher oft ebenfalls lesen.
Welcher MIME-Typ gehört zu .py3?
Der MIME-Typ ist text/x-python3. Im Apache-Webserver: AddType text/x-python3 .py3; in nginx: types { text/x-python3 py3; }.