Compare commits
2 Commits
c763586ff3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1cdaa195c7 | ||
|
|
7cea83cf2d |
@@ -7,6 +7,7 @@ def format_md_file(file_path):
|
||||
|
||||
# 基础文本替换处理
|
||||
content = content.replace(' ', '') # 去空格
|
||||
content = content.replace(' ', '') # 去空格
|
||||
content = content.replace('# ', '').replace('#', '') # 去#
|
||||
content = content.replace('!', '。').replace('!', '。') # 替换感叹号为句号
|
||||
content = content.replace(';', '。').replace(';', '。') # 替换分号为句号
|
||||
|
||||
@@ -7,6 +7,7 @@ def format_md_file(file_path):
|
||||
|
||||
# 去空格
|
||||
content = content.replace(' ', '')
|
||||
content = content.replace(' ', '') # 去空格
|
||||
# 去#
|
||||
content = content.replace('# ', '')
|
||||
content = content.replace('#', '')
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -e # 遇到错误立即退出
|
||||
sudo docker run -itd --name text_format_python -v ./:/app python:3.13.7-alpine3.22
|
||||
set -e
|
||||
# 获取脚本本身所在目录的绝对路径(万能写法,无论在哪执行脚本都生效)
|
||||
SCRIPT_DIR=$(cd $(dirname $0) && pwd)
|
||||
sudo docker run -itd --name text_format_python -v "$SCRIPT_DIR":/app python:3.13.7-alpine3.22
|
||||
Reference in New Issue
Block a user