.py3x script Python 3
Texte et code source
| Type MIME | text/x-python3 |
|---|---|
| Description | script Python 3 |
| Catégorie | Texte et code source |
| Signature (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) |
| Basé sur | text/x-python |
| Autres extensions | .py, .py3, .pyi |
Questions fréquentes
Qu’est-ce qu’un fichier .py3x ?
Un fichier .py3x est un format de type « script Python 3 » (type MIME text/x-python3).
Comment ouvrir un fichier .py3x ?
Avec n’importe quel éditeur de texte : Notepad++, Visual Studio Code, ou gedit et vim sous Linux. Le fichier contient du texte lisible, éventuellement du code source ou une configuration.
Comment reconnaître un vrai fichier .py3x ?
Aux octets du début du fichier, la signature (magic bytes) : 23 21 20 2F 62 69 6E 2F 70 79 74 68 6F 6E 33 (#! /bin/python3) et 23 21 2F 62 69 6E 2F 70 79 74 68 6F 6E 33 (#!/bin/python3). Sous Linux et macOS, file --mime-type example.py3x vérifie le type réel indépendamment de l’extension.
Sur quel format .py3x est-il basé ?
Techniquement, un fichier .py3x est un sous-type de « script Python » (text/x-python) ; les programmes conçus pour ce format de base peuvent donc souvent le lire aussi.
Quel type MIME correspond à .py3x ?
Le type MIME est text/x-python3. Dans le serveur web Apache : AddType text/x-python3 .py3x ; dans nginx : types { text/x-python3 py3x; }.