摘要: 阅读全文
posted @ 2021-11-14 11:49 LianGiQ 阅读(18) 评论(0) 推荐(0)
摘要: 1、Numpy NumPy(Numerical Python) 是 Python 语言的一个扩展程序库,支持大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库。 NumPy 是一个运行速度非常快的数学库,主要用于数组计算,包含: 一个强大的N维数组对象 ndarray。 广播功能函数。 阅读全文
posted @ 2021-11-14 11:46 LianGiQ 阅读(32) 评论(0) 推荐(0)
摘要: import jieba txt = open("《西游记》.txt", "r", encoding='utf-8').read()words = jieba.lcut(txt) # 使用精确模式对文本进行分词counts = {} # 通过键值对的形式存储词语及其出现的次数 for word in 阅读全文
posted @ 2021-11-14 11:44 LianGiQ 阅读(41) 评论(0) 推荐(0)
摘要: print("乒乓球比赛,学号2020310143033")from random import randomdef printInfo():print('这个程序模拟两个选手A和B的某种竞技比赛')print('程序运行需要A和B的能力值(以0到1之间的小数表示)')def getInputs() 阅读全文
posted @ 2021-11-14 11:43 LianGiQ 阅读(38) 评论(0) 推荐(0)
摘要: import turtle, datetimedef drawGap(): # 绘制数码管间隔 turtle.penup() turtle.fd(5) def drawLine(draw): # 绘制单段数码管 drawGap() turtle.pendown() if draw else turt 阅读全文
posted @ 2021-10-23 23:34 LianGiQ 阅读(44) 评论(0) 推荐(0)
摘要: money_all = 56.75 + 72.91 + 88.50 + 26.37 + 68.51money_all_str = str(money_all)print("商品总金额为:" + money_all_str)money_real = int(money_all)money_real_s 阅读全文
posted @ 2021-09-14 23:25 LianGiQ 阅读(45) 评论(0) 推荐(0)
摘要: 有幸于大学期间有老师的教导能让我深度的学习Python科目,如今刚刚入门,便来分享一下我的心情。 对于Python这个学习过程,我是很向往的,我对计算机有着可望而不可即的感觉,哈哈。计算机真的太难了,(对于我来说ow 在上课之前 我知道了一定要事先预习,不然听课听起来真的太难了!!!大家好好学习呀 阅读全文
posted @ 2021-09-05 20:34 LianGiQ 阅读(62) 评论(0) 推荐(0)
摘要: print(" * * * * * \n * * \n* @ @ * \n* * \n* @ * \n* * \n * * \n * * \n * * * * * \n") lyq ——LianGiQ 阅读全文
posted @ 2021-09-05 20:29 LianGiQ 阅读(64) 评论(0) 推荐(0)