2018年7月23日

摘要: 进入需要共享的目录中cmd输入: python -m http.server 然后浏览器中输入IP:8000,就可获取共享 阅读全文

posted @ 2018-07-23 22:10 一入iT深似海 阅读(166) 评论(0) 推荐(0) 编辑

2018年7月18日

摘要: list列表元素可添加修改删除 list1=[1,'a','hh'] list1.insert(0,'cccc')#在list1 0位置插入‘cccc’ print(list1) #['cccc',1,'a','hh']插入 list1.pop(1) print(list1)#['cccc','a' 阅读全文

posted @ 2018-07-18 22:18 一入iT深似海 阅读(149) 评论(0) 推荐(0) 编辑

2018年7月11日

摘要: import osresponse = urllib.request.urlopen("http://pvp.qq.com/web201605/js/herolist.json")hero_json = json.loads(response.read())hero_num = len(hero_j 阅读全文

posted @ 2018-07-11 00:09 一入iT深似海 阅读(129) 评论(0) 推荐(0) 编辑

2018年3月31日

摘要: 运行结果: >>>>>1 1>>>>>3435>>>>>3570>>>>>44114>>>>>556670>>>>>e输入有误>>>>>ertgtg输入有误>>>>>exit Process finished with exit code 0 阅读全文

posted @ 2018-03-31 00:03 一入iT深似海 阅读(1959) 评论(0) 推荐(0) 编辑

2018年3月27日

摘要: #conding:utf-8 #作者:不二哥哥 import random poker_num = [i for i in range (2,11)] # print(poker_num) poker_str = ["A","J","Q","K"] poker_king = ["大王","小王"] poker_color=["红","黑","梅","方"] # 生成扑克54张 pokers... 阅读全文

posted @ 2018-03-27 23:31 一入iT深似海 阅读(271) 评论(0) 推荐(0) 编辑

2018年3月13日

摘要: 运行结果: itrSiTStrStringTesttetseTgnirtSStringTeStringTetseTgnirseTgnirte maketrans 创建对应规则 运行结果: abababcabc 阅读全文

posted @ 2018-03-13 00:04 一入iT深似海 阅读(130) 评论(0) 推荐(0) 编辑

2018年3月12日

摘要: def ipcatch(): cmd = "ipconfig" pingtxt = os.popen(cmd) pingtxt1 = pingtxt.readlines() w = len(pingtxt1) n = 0 pingstr = "" for line in pingtxt1: if "192.168" in l... 阅读全文

posted @ 2018-03-12 11:10 一入iT深似海 阅读(323) 评论(0) 推荐(0) 编辑

摘要: 2018-03-12 #log class Logger(object): def __init__(self,fileN ="Default.log"): self.terminal = sys.stdout self.log = open(fileN,"a") def write(self,message): self.ter... 阅读全文

posted @ 2018-03-12 10:52 一入iT深似海 阅读(11289) 评论(0) 推荐(0) 编辑

2018年3月9日

摘要: bat一键设置打开或关闭windows功能 2017年10月19日 ⁄ 综合 ⁄ 共 350字 ⁄ 字号 小 中 大 ⁄ 评论关闭 1,用管理员身份运行cmd. 2,运行 dism /online /Get-Features >C:\1.txt,这样会在C盘生成一个txt文件,文件内容是功能列表,可 阅读全文

posted @ 2018-03-09 11:02 一入iT深似海 阅读(4670) 评论(0) 推荐(0) 编辑

2018年3月8日

摘要: # -*- coding: utf-8 -*-from tkinter import *import time# 导入tkinter模块的所有内容def callback(): # 定义一个 改变文本的函数 . var.set("程序一 ") print("11111111111111 ") tim 阅读全文

posted @ 2018-03-08 23:20 一入iT深似海 阅读(150) 评论(0) 推荐(0) 编辑