This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pprint | |
# 需要替换的文本 | |
s = """ | |
2020/7/28 9:03:01,姓名:科创,班级:Y1系_1班,年龄:15 | |
2020/7/28 9:03:01,姓名:新三,班级:Y2系_2班,年龄:16 | |
2020/7/28 9:03:01,姓名:创业,班级:Y3系_3班,年龄:17 | |
""" | |
# 命令后解析 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*-coding: utf-8 -*- | |
import os | |
import uuid | |
import re | |
from os import stat | |
from pwd import getpwuid |