This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gevent | |
from gevent.queue import JoinableQueue | |
from gevent import Greenlet | |
from gevent.pool import Group | |
from gevent import monkey | |
monkey.patch_socket() | |
monkey.patch_ssl() | |
import requests | |
from requests import Session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def foo(**kargs): | |
for val,key in kargs.items(): | |
print "{0} -> {1}".format(val, key) | |
foo(hello_para='hello', world='world') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please enter a number(1-10): 11 | |
Out of range! | |
Please enter a number(1-10): 5 | |
1 | |
1 1 | |
1 2 1 | |
1 3 3 1 | |
1 4 6 4 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please enter a number (1-10): 11 | |
Out of range! | |
Please enter a number (1-10): 7 | |
1 | |
1 1 | |
1 2 1 | |
1 3 3 1 | |
1 4 6 4 1 | |
1 5 10 10 5 1 | |
1 6 15 20 15 6 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please input a number (1-10): 11 | |
Out of range! | |
Please input a number (1-10): 5 | |
1 | |
1 1 | |
1 2 1 | |
1 3 3 1 | |
1 4 6 4 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please input first number (3~10): 0 | |
Out of range! | |
Please input first number (3~10): 8 | |
Please input second number (3~10): 11 | |
Out of range! | |
Please input second number (3~10): 8 | |
1 1 0 0 0 1 1 1 | |
1 1 1 1 1 0 0 1 | |
0 0 1 0 0 1 1 0 | |
1 0 0 1 0 0 1 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please input a number (1~10): | |
0 | |
Out of range! | |
Please input a number (1~10): | |
11 | |
Out of range! | |
Please input a number (1~10): | |
8 | |
1 | |
1 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ce1002.a2.s102522042; | |
import java.util.Scanner; | |
public class A2 { | |
public static void main(String[] args) { | |
Scanner input = new Scanner( System.in ); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ce1002.a2.ta; | |
import java.util.Scanner; | |
public class A2 { | |
public static void main(String[] args) { | |
Scanner input = new Scanner( System.in ); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/module.h> | |
#include <linux/printk.h> | |
#include <linux/fs.h> | |
#include <linux/sched.h> | |
#include <asm/unistd.h> | |
#include <asm/pgtable_types.h> | |
#include <linux/highmem.h> | |
#include "hook_function_ptr.h" |
OlderNewer