摘要:
import tkinter as tk from tkinter import ttk from pypinyin import lazy_pinyin # 省份、城市、地区数据 data = { "北京": { "北京市": ["东城区", "西城区", "朝阳区"], }, "上海": { " 阅读全文
摘要:
学了学python:写程序实现对特定英文文章(文本文件)的单词数和有效行数的统计,其中要求空行不计数; word_count = 0 line_count = 0 with open(filename, 'r') as file: for line in file: stripped_line = 阅读全文