摘要: 1.TensorFlow介绍 2.TensorFlow基础知识 备注: 使用图 (graph)来表示计算任务. 在被称之为 会话 (Session) 的上下文 (context) 中执行图. 使用 tensor 表示数据. 通过 变量 (Variable) 维护状态. 使用 feed 和 fetch 阅读全文
posted @ 2022-04-24 22:08 糖三拾六 阅读(57) 评论(0) 推荐(0)
摘要: import mathimport numpy as npimport pandas as pdfrom pandas import DataFramey = [0.14, 0.64, 0.28, 0.33, 0.12, 0.03, 0.02, 0.11, 0.08]x1 = [0.29, 0.50 阅读全文
posted @ 2022-03-19 22:30 糖三拾六 阅读(33) 评论(0) 推荐(0)
摘要: import wximport sqlite3#嵌入信息库#conn = sqlite3.connect('student information')#cursor = conn.cursor()#cursor.execute('insert into user (id,name,sr) value 阅读全文
posted @ 2021-12-12 11:49 糖三拾六 阅读(48) 评论(0) 推荐(0)
摘要: import wximport sqlite3#嵌入信息库#conn = sqlite3.connect('student information')#cursor = conn.cursor()#cursor.execute('insert into user (id,name,sr) value 阅读全文
posted @ 2021-12-12 11:14 糖三拾六 阅读(31) 评论(0) 推荐(0)
摘要: import jiebatxt=open('D:\桌面\西游记.txt',"r",encoding='utf-8').read()excludes={"什么","一个","那里","怎么","我们","不知","两个","甚么",\"不是","只见","原来","不敢","如何",&qu 阅读全文
posted @ 2021-11-14 11:20 糖三拾六 阅读(72) 评论(0) 推荐(0)
摘要: snum=input()if snum[:-1]=='': print("输入错误")elif snum[:-1] !='': if int(snum[:-1]) <= 17 and int(snum[:-1])>=1: if snum[-1] in ['A','a','f','F']: print 阅读全文
posted @ 2021-10-24 09:20 糖三拾六 阅读(25) 评论(0) 推荐(0)
摘要: pi = 0N = 100for k in range(N): pi += 1/pow(16, k) * (4 / (8 * k + 1) - 2 /(8 * k + 4) - 1/(8 * k + 5) - 1 /(8 * k + 6)) print("圆周率值是:{}".format(pi)) 阅读全文
posted @ 2021-10-17 11:49 糖三拾六 阅读(907) 评论(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-15 21:31 糖三拾六 阅读(33) 评论(0) 推荐(0)
摘要: x = float(input("输入矩阵的长:")) y = float(input("输入矩阵的宽:"))s = x*yprint("矩阵面积:"+str(s))a = round(s,2)print(a) 阅读全文
posted @ 2021-09-12 16:23 糖三拾六 阅读(13) 评论(0) 推荐(0)
摘要: 人生第一次用python,在做作业的过程中我懂得了老师说的”人生苦短,我用python“ 阅读全文
posted @ 2021-09-05 22:04 糖三拾六 阅读(29) 评论(0) 推荐(0)