上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 33 下一页
摘要: 执行用时 :660 ms, 在所有 python 提交中击败了24.93%的用户 内存消耗 :15.5 MB, 在所有 python 提交中击败了19.17%的用户 ——2019.11.2 阅读全文
posted @ 2019-11-02 14:53 欣姐姐 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 执行用时 :60 ms, 在所有 python 提交中击败了92.56%的用户 内存消耗 :13.7 MB, 在所有 python 提交中击败了6.25%的用户 ——2019.11.2 阅读全文
posted @ 2019-11-02 14:47 欣姐姐 阅读(222) 评论(0) 推荐(0) 编辑
摘要: class Solution(object): def simplifyPath(self, path): """ :type path: str :rtype: str """ stack=[] path=path.split('/') for item in path: if item=='.. 阅读全文
posted @ 2019-11-02 13:38 欣姐姐 阅读(148) 评论(0) 推荐(0) 编辑
摘要: # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def 阅读全文
posted @ 2019-11-01 15:12 欣姐姐 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 用栈做: # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): 阅读全文
posted @ 2019-10-31 22:07 欣姐姐 阅读(92) 评论(0) 推荐(0) 编辑
摘要: # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def 阅读全文
posted @ 2019-10-31 20:29 欣姐姐 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 导入模块: from keras.datasets import mnist from keras.utils import np_utils import numpy as np import matplotlib.pyplot as plt from keras.models import Se 阅读全文
posted @ 2019-10-31 20:11 欣姐姐 阅读(933) 评论(0) 推荐(1) 编辑
摘要: import tensorflow as tf import numpy as np import math import timeit import matplotlib.pyplot as plt import matplotlib import os from keras.utils impo 阅读全文
posted @ 2019-10-31 15:22 欣姐姐 阅读(1185) 评论(0) 推荐(0) 编辑
摘要: 运行程序出现如下错误: 去Anaconda Prompt看看keras是不是安装成功: 激活tensorflow环境,进入python后,import tensorflow没出错,import keras时候提示no module named 'keras',那么就该安装keras了。 进入tens 阅读全文
posted @ 2019-10-30 10:18 欣姐姐 阅读(23351) 评论(0) 推荐(0) 编辑
摘要: 解决办法: (PS:一定要把Anaconda环境自带的包 和Anaconda目录env下tensorflow环境中安装的区分开!) 如果是Anaconda下的tensorflow环境中的程序出错,则: 进入Anaconda Prompt->activate tensorflow->python: 按 阅读全文
posted @ 2019-10-30 10:01 欣姐姐 阅读(1104) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 33 下一页