大约有 41,731 项符合查询结果(耗时:0.0356秒) [XML]
Checking if a string array contains a value, and if so, getting its position
I have this string array:
12 Answers
12
...
Inserting a PDF file in LaTeX
I am trying to insert a PDF or doc file as an appendix in my LaTeX file. Do you know how I can do this?
6 Answers
...
What does “DAMP not DRY” mean when talking about unit tests?
I heard someone say that unit tests (e.g. nUnit, jUnit, xUnit) should be
8 Answers
8
...
Call a function from another file?
Set_up: I have a .py file for each function I need to use in a program.
17 Answers
17
...
Difference between a Seq and a List in Scala
I've seen in many examples that sometimes a Seq is being used, while other times is the List...
5 Answers
...
How do I check if there are duplicates in a flat list?
For example, given the list ['one', 'two', 'one'] , the algorithm should return True , whereas given ['one', 'two', 'three'] it should return False .
...
Why the switch statement cannot be applied on strings?
Compiling the following code and got the error of type illegal .
20 Answers
20
...
Sorting an array of objects in Ruby by object attribute?
I have an array of objects in Ruby on Rails. I want to sort the array by an attribute of the object. Is it possible?
9 Answ...
Scoping in Python 'for' loops
I'm not asking about Python's scoping rules; I understand generally how scoping works in Python for loops. My question is why the design decisions were made in this way. For example (no pun intended):
...
What is the use of the %n format specifier in C?
What is the use of the %n format specifier in C? Could anyone explain with an example?
10 Answers
...
