上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页
摘要: from tkinter import * import parser from math import factorial root = Tk() root.title("计算器") # i keeps the track of current position on the input text 阅读全文
posted @ 2021-03-21 16:05 朵朵奇fa 阅读(50) 评论(0) 推荐(0) 编辑
摘要: from traits.api import HasTraits, Str, Int from traitsui.api import View, Item, Group class Simple(HasTraits): first_name = Str last_name = Str depart 阅读全文
posted @ 2021-03-17 22:07 朵朵奇fa 阅读(65) 评论(0) 推荐(0) 编辑
摘要: pip install -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple traits pip install -i http://pypi.douban.com/simple/ --trusted-hos 阅读全文
posted @ 2021-03-17 21:51 朵朵奇fa 阅读(85) 评论(0) 推荐(0) 编辑
摘要: pip install -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple open-python由于安装opencv-python比较慢,所以使用豆瓣镜像安装比较快 阅读全文
posted @ 2021-03-16 22:14 朵朵奇fa 阅读(113) 评论(0) 推荐(0) 编辑
摘要: spam=["shu","shu2"] for i in spam: i=list() for j in [1,2,3]: i.append(j) print(i) 阅读全文
posted @ 2021-03-15 22:05 朵朵奇fa 阅读(3472) 评论(0) 推荐(0) 编辑
摘要: 循环路径下的文件将所有的txt文件进行合并 from xlutils.copy import copy import xlrd # 加载已存在的xls old_workbook = xlrd.open_workbook('guoshun.xlsx') # 将已存在的excel拷贝进新的excel n 阅读全文
posted @ 2021-03-15 22:04 朵朵奇fa 阅读(528) 评论(0) 推荐(0) 编辑
摘要: from xlutils.copy import copy import xlrd # 加载已存在的xls old_workbook = xlrd.open_workbook('guoshun.xlsx') # 将已存在的excel拷贝进新的excel new_workbook = copy(old 阅读全文
posted @ 2021-03-15 22:02 朵朵奇fa 阅读(2111) 评论(0) 推荐(0) 编辑
摘要: python利用UI选择路径 import tkinter as tk from tkinter.filedialog import askdirectory def selectPath(): path_ = askdirectory() path.set(path_) root = tk.Tk( 阅读全文
posted @ 2021-03-15 22:01 朵朵奇fa 阅读(500) 评论(0) 推荐(0) 编辑
摘要: python装饰器的作用就是把一个函数作为参数传给另外一个参数 import time def step1(): for i in range(0,50): print("Step 1........") def step2(): for i in range(0,50): print("Step 阅读全文
posted @ 2021-03-15 21:16 朵朵奇fa 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 创建一个可迭代对象 https://blog.csdn.net/mieleizhi0522/article/details/82142856 #迭代器 #创建一个可以迭代的对象 from collections import Iterable class MyClass(object): def _ 阅读全文
posted @ 2021-03-14 21:21 朵朵奇fa 阅读(76) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页