上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
  2021年8月7日
摘要: 1 阅读全文
posted @ 2021-08-07 21:28 讲道理好嘛 阅读(17) 评论(0) 推荐(0) 编辑
摘要: # coding=utf-8 class A: def __init__(self): self.n = 100 def add(self, m): self.n += m # self.n = 3+4+1 class B(A): def __init__(self): self.n = 3 def 阅读全文
posted @ 2021-08-07 21:27 讲道理好嘛 阅读(37) 评论(0) 推荐(0) 编辑
摘要: import requests r = requests.get(url='http://learncodethehardway.org/words.txt') # 最基本的GET请求 print(r.status_code) # 获取返回状态 r = requests.get(url='http: 阅读全文
posted @ 2021-08-07 21:26 讲道理好嘛 阅读(37) 评论(0) 推荐(0) 编辑
摘要: stuff = ['Test', 'This', 'Out'] print(' '.join(stuff)) 输出结果: D:\Python\Python36\python.exe E:/pytest/ex42.py Test This Out Process finished with exit  阅读全文
posted @ 2021-08-07 21:25 讲道理好嘛 阅读(29) 评论(0) 推荐(0) 编辑
摘要: cities['_find'] = find_city city_found = cities['_find'](cities, state) 一个函数也可以作为一个变量,``def find_city`` 比如这一句创建了一个你可以在任何地方都能使用的变量。在这段代码里,首先把函数 find_ci 阅读全文
posted @ 2021-08-07 21:24 讲道理好嘛 阅读(44) 评论(0) 推荐(0) 编辑
摘要: python3.7.0自带Urllib库,无需安装 class X(Y):创建一个叫X的类,并继承Y class X(object): def __init__(self, J):类X有一个__init__方法,该方法有self和J两个参数 class X(object): def M(self, 阅读全文
posted @ 2021-08-07 21:23 讲道理好嘛 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 安装: 切换到pip所在目录 D:\Program Files\JetBrains\PyCharm 2017.3.3\untitled>cd /d c:\ c:\>cd c:\Users\ceshi\AppData\Local\Programs\Python\Python36\Scripts\ 执行 阅读全文
posted @ 2021-08-07 21:06 讲道理好嘛 阅读(35) 评论(0) 推荐(0) 编辑
摘要: Python2.7.9以上、 Python3.4以上版本都自带pip工具。 pip下载地址:https://pypi.python.org/pypi/pip#downloads 通过命令判断是否已安装,可显示版本和路径:pip --version D:\pytest>pip --version pi 阅读全文
posted @ 2021-08-07 20:44 讲道理好嘛 阅读(538) 评论(0) 推荐(0) 编辑
摘要: Excel批量取消工作表隐藏 1. Alt+F11 2. 视图-工程资源管理器 3. 在资源管理器空白处右键-插入-模块 4. 插入代码(如下) 5. F5 Sub qxyc() Dim sht As Worksheet For Each sht In Worksheets sht.Visible  阅读全文
posted @ 2021-08-07 20:42 讲道理好嘛 阅读(14) 评论(0) 推荐(0) 编辑
摘要: Python 《笨办法学 python3》系列练习计划——0. 序言、目录 面向对象 函数返回值 python帮助教程 阅读全文
posted @ 2021-08-07 20:40 讲道理好嘛 阅读(30) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页