Clear the screen with the running Python interpreter.
...as a function
def clear_screen(): import os; os.system('cls' if os.name=='nt' else 'clear')
...as a lambda expression with explicit import statement
Clear the screen with the running Python interpreter.
...as a function
def clear_screen(): import os; os.system('cls' if os.name=='nt' else 'clear')
...as a lambda expression with explicit import statement
/// | |
/// uetoyo | |
/// | |
template<typename F, typename S> | |
class Pair | |
{ | |
public: | |
inline Pair(F first, S second) : _first(first), _second(second) | |
{ | |
} |
def get_docx_paragraphs_content(path, delimiter="\n"): | |
""" | |
Funkce vrací obsah odstavců Word dokumentu. | |
:path: Cesta k Word dokumentu. | |
:delimiter: Oddělovací znak jednotlivých odstavců ve výstupním řetězci. | |
:returns paragraphs: Vrací obsah odstavců jako řetězec. | |
""" | |
import os | |
import zipfile | |
from xml.etree.ElementTree import XML |
fn main() { | |
println!("Hello, World!") | |
} |
/** | |
Reads the content and returns it as a string. | |
@param filename | |
@returns string | |
*/ | |
const char * read_text(const char * filename) | |
{ | |
assert(NULL != filename); | |
FILE * fp; |
class A(object): | |
def __init__(self): | |
self.__var = 1 | |
def __private(self): | |
print("--private--") | |
a = A() | |
print(A.__dict__.keys()) |
// Test Gist | |
#include <iostream> | |
int main() | |
{ | |
std::cout << "Hello World!" << std::endl; | |
return 0; // EXIT_SUCCESS | |
} |