Skip to content

Commit

Permalink
Merge pull request #2 from taskschd1145/Dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
taskschd1145 authored Nov 1, 2024
2 parents 8170be2 + b6a7c26 commit ee0bb29
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ pip install Pillow

### Step 1: Get the Source Code

Download the source code from the Releases section of the GitHub repository.
Download the source code of this repository

### Step 2: Edit the Barcode List

Open the `main.txt` file and replace its contents with the barcode data you need to generate, with each data entry on a new line.
Open the `main.barcode` file and replace its contents with the barcode data you need to generate, with each data entry on a new line.

### Step 3: Run the Main Script

Expand All @@ -38,7 +38,7 @@ In the project directory, run the `main.py` script via the terminal:
python main.py
```

This will generate barcode images based on the data in `main.txt`.
This will generate barcode images based on the data in `main.barcode`.

When the terminal prompts "Done.", the generation is complete

Expand Down
2 changes: 1 addition & 1 deletion README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pip install python-barcode

### 1:获取源代码

从GitHub仓库的Releases部分下载源代码
从GitHub仓库的Releases部分或直接Git Clone下载源代码

### 2:编辑条形码列表

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
image_height = 400

# Open and read the contents of the main.txt file
with open('main.txt', 'r', encoding='utf-8') as file:
with open('main.barcode', 'r', encoding='utf-8') as file:
lines = file.readlines()

# Process each line and generate a barcode
Expand Down

0 comments on commit ee0bb29

Please sign in to comment.