摘要: def cube(x): return x**3 cube(2) 8 import tensorflow as tf cube(tf.constant(2.0)) <tf.Tensor: shape=(), dtype=float32, numpy=8.0> 现在用tf.function()函数将此 阅读全文
posted @ 2021-10-24 18:41 里列昂遗失的记事本 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 七段数码管绘制系统时间(年,月,日,小时) 代码 import datetime # 引入时间库 import random import turtle # 引入海龟库 def drawLine(draw): # 绘制单段数码管 turtle.pendown() if draw else turtl 阅读全文
posted @ 2021-10-24 09:50 里列昂遗失的记事本 阅读(45) 评论(0) 推荐(0) 编辑