大约有 42,000 项符合查询结果(耗时:0.0541秒) [XML]
What is the difference between Python's list methods append and extend?
What's the difference between the list methods append() and extend() ?
20 Answers
2...
Algorithm to generate all possible permutations of a list?
Say I have a list of n elements, I know there are n! possible ways to order these elements. What is an algorithm to generate all possible orderings of this list? Example, I have list [a, b, c]. The algorithm would return [[a, b, c], [a, c, b,], [b, a, c], [b, c, a], [c, a, b], [c, b, a]].
...
What is meant by the term “hook” in programming?
I recently heard the term "hook" while talking to some people about a program I was writing. I'm unsure exactly what this term implies although I inferred from the conversation that a hook is a type of function. I searched for a definition but was unable to find a good answer. Would someone be ab...
Ruby on Rails vs ASP.NET MVC 3 for a .NET Guy? [closed]
I am very new to RoR and I want to select between APS.NET MVC3 and RoR. C# is sure easier for me as I have been doing it for so long but I am wondering if there is any point to consider using RoR over .MVC to develop a real world website?
...
Navigation in django
I've just done my first little webapp in django and I love it. I'm about to start on converting an old production PHP site into django and as part its template, there is a navigation bar.
...
Downcasting in Java
Upcasting is allowed in Java, however downcasting gives a compile error.
11 Answers
1...
Class method differences in Python: bound, unbound and static
What is the difference between the following class methods?
13 Answers
13
...
JavaScript function in href vs. onclick
I want to run a simple JavaScript function on a click without any redirection.
15 Answers
...
What's the difference between the data structure Tree and Graph?
Academically speaking, what's the essential difference between the data structure Tree and Graph? And how about the tree based search and Graph based search?
...
Why can't I define a static method in a Java interface?
EDIT: As of Java 8, static methods are now allowed in interfaces.
24 Answers
24
...
