امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبVote count: 0In the database world, any DBMS has it's own API.For the sake of having a lingua franca across database servers, OBDC (Open DataBase Coectivity) was invented. I'm trying to understand WSGI and in Wikipedia I found this:«The Web Server Gateway Interface (WSGI) is a specifi...
ادامه مطلبVote count: 0I'll try to keep it short, these is the situation:Creature Class : x y coordinates, moves around randomly and shoots ProjectilesProjectile Class : x y coordinates, moves in a straight line and dies when impacting CreaturesArena Class : JPanel which iterates over the lists o...
ادامه مطلبVote count: 0 I have a list of rows... rows = [2, 21] And a dictionary of data... data = {'x': [46, 35], 'y': [20, 30]} I'd like to construct a second dictionary, dataRows, keyed by the row that looks like this... dataRows = {2: {'x': 46, 'y': 20}, 21: {'x': 35, 'y': 30}} I tried the following code, but the values of dataRows are always the same (last value in loop): for i, row in enumerate(rows): for key, value in data.items(): dataRows[row] = value[i] Any assistance would be greatly appreciate...
ادامه مطلبVote count: 219 What exactly are the Python scoping rules? If I have some code: code1 class Foo: code2 def spam..... code3 for code4..: code5 x() Where is x found? Some possible choices include the list above: In the enclosing source file In the class namespace In the function definition In the for loop index variable Inside the for loop Also there is the context during execution, when the function spam is passed somewhere else. And maybe lambda functions pass a bit differently? There must be a ...
ادامه مطلبVote count: 0 I want to make a function that will make a list of all possible combinations of a charset between length n and n+m in java. I'm trying to demonstrate how hash cracking works and I was asked to write in java, but I'm not very familiar with it. I would also like to know if there is something like the python yeald function in java and if so how can I imlement it. asked 7 secs agoLendion Let's block ads!...
ادامه مطلبVote count: 0 I would really appreciate some help. i'm having problem with an output from pymining / itemmining which creates association rules from transaction baskets. The output (rules) i'm getting is a list like this: [(frozenset({'A', 'B', 'C', 'D', 'E'}), frozenset({'X'}), 55, 0.8870967741935484), (frozenset({'U', 'Z', 'D'}), frozenset({'G', 'Q'}), 55, 0.5445544554455446),...] which means if a customer has bought items A B C D E he is likely to buy next item X.. (this happens 55 times and ...
ادامه مطلبVote count: 0 I have file with Json format: {"uid": 2, "user": 1} {"uid": 2, "user": 1} {"uid": 2, "user": 1} When i use following code, it show an error: raise JSONDecodeError("Extra data", s, end) json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 22) with open('E:/list.txt','r') as target: my_list = json.load(target) How to convert content of my file into list of dictionary ? Thank you asked 28 secs agoNGuyen Let's block ads!...
ادامه مطلبVote count: 0 Go to google.com Type a keyword (as shown in the attachment) I want to select 3rd or 4th value from the search suggestions. What method shd I use in selenium python ? strong text asked 41 secs agoZabi Let's block ads!...
ادامه مطلبVote count: 0 I have encountered a conundrum. I think I should know how to solve this — I even wrote a Python book — but I can't figure it out. It seems like what I am struggling with should be addressed by a design patte that is a variation on the factory theme, but I can't recall one. (At the end of this writeup I suggest a technical solution, but it seems an implausible one.) I hope you find this discussion interesting in its own right, but I look forward to hearing some suggestions for solut...
ادامه مطلبVote count: 0 Suppose I want to print all the elements between index 2 and 8 of the list, how do I implement this without using a for, or while loop? asked 13 secs agoFalcon2908 Let's block ads!...
ادامه مطلبVote count: 0 Python 2.7.12 |Anaconda 4.1.1 (64-bit)| (default, Jul 2 2016, 17:42:40) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://anaconda.org >>> from sympy import symbols >>> from sympy.plotting import plot >>> L = [2+2j, 3+2j, 1.75+1j, 2+1j, 2.25+1j, 2.5+1j, 2.75+1j, 3.25+1j] >>> plot(L) Traceback (most recent c...
ادامه مطلبVote count: 0 I created a function and I would like to be able to call it with a set of keyworded-parameters that I called '**criterias': def actionBasedOnParameters(**criterias): # my code Inside this set of parameters one of them will be called 'SumInc' and I would like to pass on a range to it. A range that will be of the form of [1:15] or [1:] or [:15]. Something that will essentially let me check whether a variable in my code is greater than a certain boundary or lower than another boundary...
ادامه مطلبVote count: 0 i have a list say : List list = new List(){"Oracle","SQL Server","Java","Oracle","Python"}; Now i'm trying to get index of the second "Oracle" from the list using LINQ: var indexFirefox = list.FindIndex(a => a.Text == "Oracle"); But this will give you only the first instance that is index 0. I want index as 4 in my result. Will using Skip help or there is a more simplistic way of getting the index. The example above is just a demo, i have a list with over 300 values. asked 31 secs ...
ادامه مطلب