if operator.equals("<=")
return leftval <= rightval
.. и т.д.
if (map.get(ID).getValue < value)
if (ExpressionMap.getEntryByID(ID).evaluate())
int[] a = { 1, 2, 3, 4 };
int[] b = { 2, 3, 1, 0 };
System.out.println( a [ (a = b)[3] ] );
System.out.println(a[0]);
Выводит 1 2# -*- coding: utf-8 -*-
import urllib2
import sys
from lxml import html
import codecs
codecs.register(lambda name: codecs.lookup('utf-8') if name == 'cp65001' else None)
cnt = 1
for x in range(1,100):
url = ("http://habrahabr.ru/interesting/page%s/" % x)
try:
print "=== page "+str(x)+" ==="
tree = html.fromstring(str(urllib2.urlopen(url).read()))
topicLink =tree.xpath("//a[@class='post__title_link']/@href")
topicTitle = tree.xpath("//a[@class='post__title_link']/text()")
for i in range(0, len(topicTitle)):
var = str(cnt)+" "+topicTitle[i]+" "+topicLink[i]
print var
print
cnt=cnt+1
except IndexError:
print("Page "+str(x)+" does not exist!")
except urllib2.URLError:
print("Could not retrieve the page..")
AccountManager.is_account_available_for_username(..)
AccountManager.create_new_account_with_uname_and_pw(..)
AccountManager.remove_authentication_for_user(..)
AccountManager.log_in_user(..)
AccountManager.is_user_logged_in(..)
Class MyQueue {
Element head;
Element tail;
...
public void addElement(Element e){
e.setNext(this.getTail())
this.getTail()
this.setTail(e)
} ... }