摘要:
torch 神经网络例子: import torchimport torch.nn as nnimport torch.nn.functional as F class Net(nn.Module): def __init__(self):super(Net, self).__init__()# 1 阅读全文
摘要:
def happy(n): try: if n==1: print("True") else: new=str(n) sum=0 for c in new: sum+=int(c)**2 return happy(sum) except Exception as e: print ("False") 阅读全文