加载中
【Python目录】

Python基础 1 【python语言程序设计】turtle 2 【python语言程序设计】基础 3 【python语言程序设计】字符串 4 【python程序设计】time库和文本进度条 5 【python程序设计】程序控制 6 【pyt...

【CentOS 7笔记目录】

hellopasswd 【CentOS 7基础笔记】 一. CentOS 7安装和登录 【CentOS 7笔记1】,安装CentOS 7 【CentOS 7笔记2】,配置IP 【CentOS 7笔记3】,终端连接和密钥配置 【CentOS 7笔记4】,两种修...

2017/10/28 15:17
109
【python】CentOS7和Deepin安装Python3#190131

[root@MyCloudServer ~]# python --version Python 2.7.5 [root@MyCloudServer ~]# cd /usr/local/src/ [root@MyCloudServer src]# yum install -y wget [root@MyCloudServer src]# wget htt...

2.

三种ui窗口编译方式 C:\Users\hellopasswd>pyuic5 -o D:\testQtDesigner\firstMainWin.py D:\testQtDesigner\firstMainWin.ui import os import os.path dir ='./' def listUiFile(): list =...

def
01/21 20:03
6
PyTorch#181130

Numpy and Torch对比 import torch import numpy as np np_data =np.arange(6).reshape((2,3)) torch_data =torch.from_numpy(np_data) print( '\nnumpy',np_data, '\ntorch',torch_data) D...

2018/11/30 00:01
0
基于pandas和matplotlib啤酒供应链游戏算法进行GUI设计

Supply_Chain_Game.py # * coding: utf-8 * The Editor:Vision_YX import time import pandas as pd from pylab import * import matplotlib.pyplot as plt #支持中文 mpl.rcParams['font.s...

【Tensorflow】#181114

神经网络Neural Network 神经网络:梯度下降Gradient Descent in Neural Nets Optimization Netwton's method Least Squares method Fradient Descent Cost =(predicted -real)^2 =(Wx -y)^...

【Python】网页爬虫#181109

网页结构 https://morvanzhou.github.io/static/scraping/basic-structure.html from urllib.request import urlopen html =urlopen('https://morvanzhou.github.io/static/scraping/basic-s...

【Python】matplotlib#181105

基本用法 import matplotlib.pyplot as plt import numpy as np x =np.linspace(-1,1,50) y =2 *x +1 plt.plot(x,y) plt.show() figure图像 import matplotlib.pyplot as plt import numpy a...

2018/11/05 19:18
1
【Python】pandas#181103

pandas基本介绍 import pandas as pd import numpy as np s = pd.Series([1,3,4,np.nan,44,1]) print(s) D:\PythonTest>python test.py 0 1.0 1 3.0 2 4.0 3 NaN 4 44.0 5 1.0 dtype: f......

2018/11/03 03:11
0
【Python】numpy181102

numpy属性 import numpy as np array = np.array([[1,2,3], [2,3,4]]) print(array) D:\PythonTest>python test.py [[1 2 3] [2 3 4]] #ndim维度 #shape行数与列数 #size元素个数 import num...

2018/11/02 17:15
0
【Python】多进程#181101

进程 线程和进程的比较 import multiprocessing as mp import threading as td def job(a,d): print('') t1 = td.Thread(target = job,args = (1,2)) p1 = mp.Process(target = job,args = ...

2018/11/01 17:03
0
【Python】多线程#181101

多线程 import threading def main(): print(threading.active_count()) print(threading.enumerate()) print(threading.current_thread()) if name == 'main': main() D:\PythonTest>python...

2018/11/01 16:02
1
【Python】tkinter窗口视窗#181031

Lable & Button标签和按钮 import tkinter as tk window = tk.Tk() window.title("my window") window.geometry('200x100') l = tk.Label(window,text = 'hello',bg = 'green', font = ('Ari...

2018/11/01 00:38
2
【python语言程序设计】补充#181031

zip >>> a = [1,2,3] >>> b = [4,5,6] >>> zip(a,b) <zip object at 0x0000020E66122F48> >>> list(zip(a,b)) [(1, 4), (2, 5), (3, 6)] >>> list(zip(a,a,b)) [(1, 1, 4), (2, 2, 5), (3, 3...

2018/11/01 00:36
0
【python网络爬虫】框架#181025

Scrapy error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted pip install D:\Python\Python37\Scripts\Twi...

2018/10/25 08:20
0
【Python网络爬虫】实战#181024

正则表达式语法 regular expression regx RE 编译:将符合正则表达式语法的字符串转换成正则表达式特征 . 表示任何单个字符 [] 字符集,对单个字符给出取值范围 [0-9a-zA-Z] [^] 非字符集,对...

【Python网络爬虫】提取#181023

http://python123.io/ws/demo.html #!/usr/bin/env python3 -- coding: UTF-8 -- import requests from bs4 import BeautifulSoup r = requests.get("http://python123.io/ws/demo.html") de...

2018/10/23 23:44
0
【Python网络爬虫】规则#20181023

Requests库安装 C:\Windows\System32>pip install requests Requirement already satisfied: requests in d:\python\python37\lib\site-packages (2.20.0) Requirement already satisfied: c...

2018/10/23 17:58
1
【python语言程序设计】程序设计方法学#181022

自顶向下和自底向上 自顶向下 解决复杂问题的有效方法 将一个总问题表达为若干个小问题组成的形式 使用同样方法进一步分解小问题 直至小问题可以用计算机简单明了的解决 自底向上 逐步组建复...

没有更多内容

加载失败,请刷新页面

返回顶部
顶部