群英小学3.1上学期课程表

序号星期一星期二星期三星期四星期五
上午
1
2
3
4
下午
5
6 队会
7体活 劳动
8 校本

reset.css

@charset "utf-8";
 
/* CSS Document */
* { color:#444; }
body { font:12px/1.5 "微软雅黑",Arial,Tahoma, Helvetica,\5b8b\4f53, sans-serif; }
html,body,div,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,object,code,em,span,var,legend,button,input,textarea,th,td,a,img,header,footer,nav,aside,audio,datalist,section { margin:0;padding:0;border:0;outline:0; }/*清除内外边距*/
h1,h2,h3,h4,h5,h6 { font-weight:normal;font-size:100%; }/*设置默认字体*/
:focus { outline:0; }
ul,ol,ul li,ol li { list-style: none; }/*重置列表*/
address,caption,cite,em,code,dfn,th,var { font-style:normal;font-weight:normal; }
form label { cursor:pointer; }
input,button,select,textarea { font-family:inherit;font-size:100%;outline:none; }
textarea { resize:none }
input { vertical-align:middle; }
img { border:0; }/*重置图片元素*/
table { border-collapse:collapse;border-spacing: 0; }/*重置表格*/
.l { float:left; }
.r { float:right; }
button,input[type="reset"],input[type="button"],input[type="submit"] { line-height:normal !important; }
a { text-decoration:none;}
a { color:#666;}
a:hover { text-decoration:underline; }
input { _filter:chroma(color=#000000); }
/*--清除浮动
------------------------------------------------------------------------------------------*/
.clearfix:after { clear:both;content:".";display:block;font-size:0;height:0;visibility:hidden; }
.clearfix:after { _zoom:1; }
.overflow { overflow:hidden; _zoom:1; }
.clear { clear:both; height:0;font-size:0; overflow: hidden; }

import os
import codecs


def ansi_to_utf8(folder_path):
    for filename in os.listdir(folder_path):
        file_path = os.path.join(folder_path, filename)
        if os.path.isfile(file_path):
            with codecs.open(file_path, 'r', encoding='ansi') as file:
                content = file.read()
            with codecs.open(file_path, 'w', encoding='utf-8') as file:
                file.write(content)


# 调用示例
folder_path = 'name'  # 替换为你的文件夹路径
ansi_to_utf8(folder_path)

import os


# 读取文件夹内文件名称的函数
def get_all_filenames(folder_path):
    filenames = []
    for filename in os.listdir(folder_path):
        if os.path.isfile(os.path.join(folder_path, filename)):
            filenames.append(filename)
    return filenames


folder_path = "name"  # 同目录的文件夹名
txt_name = "whiteRaf.txt"  # 同目录输出文件名

# 引用的目录,根据实际自行填写
raf_a = '<a href="/downloads/mp3/MIYAZAKI/'
# html格式相关信息
raf_b = '" style="text-decoration: none;font-family: Arial, Helvetica, sans-serif;">'
# 结尾和换行
raf_c = '</a>\n'

# 调用函数
all_filenames = get_all_filenames(folder_path)

# 写入文件
with open(txt_name, 'w') as file_object:
    for filename in all_filenames:
        file_object.write(raf_a + filename + raf_b + filename + raf_c)