language-features
Python - do I need to learn about old style classes?
I am currently learning Python 2.6.5 and I found out about old style classes and ne开发者_Python百科w style classes.[详细]
2023-02-12 12:58 分类:问答Auto translating website using Google Translate
I need to find a way to translate a website to the appropriate language as the locale set开发者_如何学编程tings on a users machine. So in otherwords someone from Germany visits my site, his locale set[详细]
2023-02-11 07:26 分类:问答C to C++ : Transitioning from one language to the other [duplicate]
This question already has answe开发者_如何学编程rs here: Closed 12 years ago. Possible Duplicate:[详细]
2023-02-06 21:02 分类:问答Why the difference between int a[5] = {0} and int a[5]={1} (Missing Feature) [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2023-02-06 19:07 分类:问答Elegantly alter a list of variables: Generalization of AddTo, TimesBy, etc
Suppose I\'ve defined a list of variables {a,b,c} = {1,2,3} If I want to double them all I can do t开发者_Python百科his:[详细]
2023-02-04 20:34 分类:问答Optional named arguments without wrapping them all in "OptionValue"
Suppose I have a function with optional named arguments but I insist on referring to the arguments by their unadorned names.[详细]
2023-02-04 09:48 分类:问答Any differences between asInstanceOf[X] and toX for value types?
I used IntelliJ\'s ability to convert Java code to Scala code which generally works quite well. It seems that IntelliJ replaced all casts with calls to asInstanceOf.[详细]
2023-02-01 17:33 分类:问答Is there a difference between int(floatvar) and (int)floatvar? [duplicate]
This question already has answers here: Closed 12 years ago. Possible Duplicate: C++: What's the difference between function(myVar) and (function)myVar ?[详细]
2023-02-01 02:17 分类:问答Need help with a Windows batch script which should set val of var based on part of a file name
This is not a homework - who would have homework on batch scripting? I need to automate something. Currently there is a hard-coded batch script meant to be run daily to get systems, and it needs to wo[详细]
2023-02-01 01:38 分类:问答Is there a use of free floating block inside a method in Java?
I didn\'t know methods could have floating blocks like this:开发者_如何转开发 class X { public static void main( String [] args ) {[详细]
2023-01-31 17:21 分类:问答