Python基础——数据分析考核(图形化版本)
环境声明:
如果没有的预先:【pip install *******】
或
【ALT】+【回车】
import csv
import numpy as np
import matplotlib.pyplot as plt
呈现效果:
GetRandomInfo.py:
import random
def getClassName():
randomClass = ("天字一号", "地字一号", "玄字一号", "黄字一号", "东宫正品")
return randomClass[int(random.random() * len(randomClass))]
def getName():
"""随机姓名"""
randomNames = (
"华", "韦", "覃", "琴", "湘", "", "钱", "彭", "邓" "张", "王", "里", "赵", "赵", "李", "春", "梦", "星", "二", "宿", "管", "土", "生",
共有 0 条评论