Python
文章平均质量分 77
DayBreak__
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python3 Matplotlib画简单散点图
import numpyimport matplotlib.pyplot as plt#初始化numpy.array数组x = numpy.array([[0, 0], [-1, 0.1], [0.3, -0.05], [0.7, 0.3], [-0.2, -0.6], [-0.15, -0.63], [-0.25, 0.55], [-0.28, 0.67]])y = numpy.arra...原创 2018-04-04 16:30:19 · 3459 阅读 · 0 评论 -
Python3基础 (一)
############### 基础语法###############name.title()大写name.upper()name.lower()\t制表符 \nstrip()删除空格 rstrip()删除右面的空格 lstrip()list.append()list.insert(index,para)del list[index]pop()弹出 a=list.pop() 弹出最后一个元素 然...原创 2018-04-05 16:43:34 · 320 阅读 · 0 评论 -
Python3实现简单的随机漫步散点图
import matplotlib.pyplot as pltfrom random import choiceclass RandomStep(): def __init__(self,num_steps=5000): self.steps = num_steps self.x_points = [0] self.y_points ...原创 2018-04-06 21:09:36 · 1345 阅读 · 0 评论
分享