12 2021 档案

摘要:Python图形化界面设计 窗体控件布局 #coding:utf-8 from tkinter import * root= Tk() root.title('我的第一个Python窗体') root.geometry('240x240') # 这里的乘号不是 * ,而是小写英文字母 x root. 阅读全文
posted @ 2021-12-24 14:47 h云淡风轻 阅读(55) 评论(0) 推荐(0)
摘要:#coding:utf-8 import re #re是正则表达式模块 def main(): str = input("请输入字符串:") chinese = re.findall('[\u4e00-\u9fa5]', str) # 汉字的范围为"\u4e00-\u9fa5" print(chin 阅读全文
posted @ 2021-12-20 14:51 h云淡风轻 阅读(32) 评论(0) 推荐(0)