
Python
789请问
刚开始学习,有什么不对的,请指教。
展开
-
python学习目录
目录1.学习资源2.基础知识3.一些函数和包4.一些算法1.学习资源Python学习资源_789请问的博客-优快云博客 https://blog.youkuaiyun.com/u013553694/article/details/879148022.基础知识Python知识_789请问的博客-优快云博客 https://blog.youkuaiyun.com/u013553694/...原创 2020-02-18 10:23:46 · 224 阅读 · 0 评论 -
python的并行计算框架
python的并行计算原创 2022-10-22 18:33:47 · 733 阅读 · 0 评论 -
python的pandas
1.分位数与桶分析机器学习-cut和qcut的区别 - 知乎原创 2021-11-12 15:01:02 · 1457 阅读 · 0 评论 -
python的常用函数
目录1.map、reduce、filter2.zip1.map、reduce、filterfrom functools import reduce# mapdef f(x): return x * xr = map(f, [1, 2, 3, 4, 5, 6, 7, 8, 9])print(map(f, [1, 2, 3, 4, 5, 6, 7, 8, 9])) # <map object at 0x0000018AD46D84E0>print(r) #原创 2021-08-04 20:40:10 · 157 阅读 · 0 评论 -
python的面向对象
1.类属性和实例属性# -*- coding:utf8 -*-class Person(object): count = 0 def __init__(self, name): self.name = name Person.count = Person.count + 1p1 = Person('Bob')print(Person.count) # 1p2 = Person('Alice')print(Person.count) #原创 2021-08-04 19:58:29 · 179 阅读 · 0 评论 -
pyhton的输出输出流实战
目录1.标准输入输出流1.标准输入输出流import sysa = input("input a: ")b = sys.stdin.readline()c = sys.stdin.readline().strip()d = sys.stdin.readline().strip()e = sys.stdin.readlines()print(a, type(a))print(b, type(b))print(c, type(c))print(d, type(d))pri原创 2021-08-01 10:51:12 · 695 阅读 · 0 评论 -
python的初始化、赋值、浅拷贝、深拷贝
import copywill = [28, 28, ["Python", '28', "JavaScript"]]# wilber=[28, 28, ["Python", "28", "JavaScript"]]# wilber=will# wilber = copy.copy(will)wilber = copy.deepcopy(will)print(id(will)) # 2787206431688print(will) # [28, 28, ['Python', '28', .原创 2021-07-31 19:10:41 · 166 阅读 · 0 评论 -
python的dict
目录1.初始化2.增3.删4.改5.查6.其他1.初始化2.增3.删4.改5.查6.其他原创 2021-07-31 17:00:50 · 321 阅读 · 0 评论 -
python的string
目录1.初始化2.字符串运算符3.python转义字符4.字符串的切片5.字符串函数1.初始化var1 = 'Hello World!'print(var1) # Hello World!var2 = "木头人"print(var2) # 木头人var3 = '''我要学习python'''print(var3) # 注意观察输出结果的格式# 我要学习# pythonvar4 = "I'am woodman"print(var4) # I'am wo原创 2021-07-31 11:33:22 · 662 阅读 · 0 评论 -
Python的tutle
目录1.初始化2.增3.删4.改5.查6.其他1.初始化2.增3.删4.改5.查6.其他原创 2021-07-29 20:21:02 · 126 阅读 · 0 评论 -
python的set
目录1.初始化2.增3.删4.改5.查1.初始化a = {1, 2, 3}print(a) # {1, 2, 3}a = [1, 1, 2, 3]print(set(a)) # {1, 2, 3}a = "qqwwee"print(set(a)) # {'e', 'q', 'w'}2.增# 末尾增加a = {1, 2, 3}a.add(4)print(a) # {1, 2, 3, 4}# a.add([5, 6]) # TypeError原创 2021-07-29 18:55:56 · 117 阅读 · 0 评论 -
Python的list
目录1.初始化2.增3.删4.改5.查1.初始化print([[1,2],[2,3]]+[1,2])# [[1, 2], [2, 3], 1, 2]print([[1,2],[2,3]]+[[1,2],[2,4]])# [[1, 2], [2, 3], [1, 2], [2, 4]]2.增# 末尾追加t = [1, 2, 3]t1 = t.append([4])print(t)#t [1, 2, 3, [4]]print(t1)#t1 Nonet =原创 2021-07-26 22:21:43 · 124 阅读 · 0 评论 -
Python的扩展库
1.Numpy模块Python中Numpy模块的使用 - 谢公子的博客 - 优快云博客 https://blog.youkuaiyun.com/qq_36119192/article/details/83748951Python常用模块之numpy - Lau_Sen的博客 - 优快云博客 https://blog.youkuaiyun.com/Lau_Sen/article/details/806019...原创 2019-03-11 10:17:16 · 1725 阅读 · 0 评论 -
python的剑指offer
1.复杂度1 最大子列和问题#01-复杂度1 最大子列和问题num = int(input())ls = [int(x) for x in input().split()] #列表推导式ThisSum = MaxSum = 0for i in range(num): ThisSum += ls[i] if(ThisSum > MaxSum): ...原创 2019-03-06 19:12:37 · 247 阅读 · 0 评论 -
Python知识
目录1.编码2.数据类型3.运算符4.控制流5.函数6.作用域7.装饰器8.面向对象9.Python文件操作10.Python绘图与可视化11.一些函数12.python其他1.编码ASCII码表中的数字和我们运算用的纯数字有何区别? https://blog.youkuaiyun.com/vr_jia/article/details/74156976...原创 2019-12-14 10:09:12 · 431 阅读 · 0 评论 -
Python学习资源
1.网站首页 - 廖雪峰的官方网站 https://www.liaoxuefeng.com/Python3 输入和输出 | 菜鸟教程 http://www.runoob.com/python3/python3-inputoutput.html原创 2019-02-25 12:29:27 · 156 阅读 · 0 评论