前两天和朋友聊天,说最近每次回家做饭都不知道要吃什么,好苦恼。
对于选择这种事情,不能因为这个浪费了人生啊,对吧。
基于对好友的“体贴”(我也是够无聊的),就搞一个随机生成菜单的脚本吧!
我们就让Python这个好朋友帮我们来选择一下——今天吃什么~
基本逻辑
1、自己选择想要...
松鼠男
4年前 (2019-05-13) 31254℃ 4评论
16喜欢
这几天在看TensorFlow的东西,网上说使用conda安装比用pip安装后运行效率高很多。于是,抱着试试看的想法 cubik.com.tw,折腾下这个没使用过的安装包管理工具。
什么是coda(Anaconda)?
来自百度百科的信息:
Anaconda指的是一个开源的Pyt...
松鼠男
4年前 (2019-05-11) 22255℃ 0评论
13喜欢
The count-and-say sequence is the sequence of integers with the first five terms as following:
1. 1
2. 11
3. 21...
松鼠男
5年前 (2018-10-19) 5978℃ 0评论
0喜欢
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inse...
松鼠男
5年前 (2018-10-19) 5932℃ 0评论
1喜欢
Implement strStr().
Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
实现 strStr() 函数。...
松鼠男
5年前 (2018-10-19) 5754℃ 0评论
0喜欢
Given an array nums and a value val, remove all instances of that value in-place and return the new length.
Do not allocate extra space for ...
松鼠男
5年前 (2018-10-19) 4883℃ 0评论
1喜欢
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.
Do not allocate...
松鼠男
5年前 (2018-10-19) 5301℃ 0评论
0喜欢
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
An input string is va...
松鼠男
5年前 (2018-10-19) 4742℃ 0评论
0喜欢
Write a function to find the longest common prefix string amongst an array of strings.
If there is no common prefix, return an empty string ...
松鼠男
5年前 (2018-10-19) 4782℃ 0评论
0喜欢
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
For example, two is written as II in Roman numeral, just ...
松鼠男
5年前 (2018-08-25) 5265℃ 0评论
0喜欢