<commit_before>---
layout: post
title: Python Guide
category: english
tags: Python
keywords: golang,wonderfan
description: docker compose
---

### Modules

Python modules are one of the main abstraction layers available and probably the most natural one. Abstraction layers allow separating code into parts holding related data and functionality.

For example, a layer of a project can handle interfacing with user actions, while another would handle low-level manipulation of data. The most natural way to separate these two layers is to regroup all interfacing functionality in one file, and all low-level operations in another file. In this case, the interface file needs to import the low-level file. This is done with the import and from ... import statements.<commit_msg>Update 2016-05-22-python-guide.md<commit_after>---
layout: post
title: Python Guide
category: 英文
tags: Python
keywords: golang,wonderfan
description: docker compose
---

### Modules

Python modules are one of the main abstraction layers available and probably the most natural one. Abstraction layers allow separating code into parts holding related data and functionality.

For example, a layer of a project can handle interfacing with user actions, while another would handle low-level manipulation of data. The most natural way to separate these two layers is to regroup all interfacing functionality in one file, and all low-level operations in another file. In this case, the interface file needs to import the low-level file. This is done with the import and from ... import statements.
{'fraction_non_alphanumeric': 0.04780114722753346, 'fraction_numerical': 0.005098789037603569, 'mean_word_length': 4.667870036101083, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4130707', 'n_tokens_mistral': 379, 'n_tokens_neox': 351, 'n_words': 224}