Hirehop

知识会给你力量,而性格会让你得到尊重

Python - Pythonic

[Erlang之父Joe Armstrong于2019年4月20日去世,享年68岁,Armstrong曾在《编程人生》中分享过他在编程习惯上有了两个改变。] [ Part-One ] 1> 查看当前Python版本 python3 --version import s...

2019-04-21 21:19:52

阅读数 479

评论数 0

Python - 变量地址、字节数与INF

import sys if __name__ == "__main__": a = float("inf") print("a = ",a) print("-a = ",-a) pri...

2019-05-16 23:57:57

阅读数 9

评论数 0

OpenCV - Base Operation to Image

#pip install opencv-python import copy import cv2 import matplotlib.pyplot as plt img = cv2.imread("C:/Users/Geclipse/Desktop/123.jpg") ...

2019-05-15 09:10:06

阅读数 418

评论数 0

Oracle - Exp_1

Oracle中的FLOAT和NUMBER: /* --修改表名 RENAME EXP1_STUDENT TO STUDENT; RENAME EXP1_COURSE TO COURSE; RENAME EXP1_TEACH TO TEACH; RENAME EXP1_SCORE TO SC...

2019-05-07 21:26:00

阅读数 419

评论数 0

Excel - Sum_Column

SUM(G1:G50)

2019-05-04 22:56:27

阅读数 422

评论数 0

Python - Get_sum_from_keyboard

Result: Source code: def get_total_1(): total = 0 value = eval(input("Please input a number: ")) while True: total...

2019-04-30 17:11:02

阅读数 468

评论数 0

Excel - Calculate_Column

在该列的第一数据行输入"="后,输入或选择方格进行运算 当一行操作结束,拖动上图标记至该列的相应范围

2019-04-30 15:31:55

阅读数 430

评论数 0

Python - *args/**kwargs

import time def get_max(*data): begin = time.time() if not data: print("No Parameters!") return False result =...

2019-04-29 00:11:08

阅读数 421

评论数 0

Python - Monkey_peaches

def monkey_peach(day): if day == 10: return 1 else: return ((monkey_peach(day+1)+1)*2) if __name__ == "__main__":...

2019-04-28 23:39:53

阅读数 425

评论数 0

Python - Draw_triangle_rhombus

import time def draw_triangle(): begin = time.time() character = input("Please input the character: ") layer = eval(input(&quo...

2019-04-28 23:33:33

阅读数 496

评论数 0

Python - 100_Chicken

import time def get_Chicken(): begin = time.time() for cock in range(1,20): for hen in range(1,32): if cock*5 + hen*3 + ...

2019-04-28 23:24:41

阅读数 426

评论数 0

Python - _Thread

import _thread import time #为线程定义一个函数 def print_time(thread_name,delay): count = 0 while count < 5: time.sleep(delay) ...

2019-04-26 17:10:57

阅读数 422

评论数 0

Python - Decimal_To_Binary

def get_bin_from_int(int_number): a = [] while int_number: a.append(int_number%2) int_number //= 2 a = list(map(lambda x:...

2019-04-26 16:52:40

阅读数 608

评论数 0

Python - Time

import time print(time.localtime()) print(type(time.localtime())) print(time.strftime("%Y-%m-%d %H:%M:%S",time.localtime())) print(type(t...

2019-04-26 16:31:44

阅读数 435

评论数 0

C++ Cerr、Cout

#include <iostream> int main() { std::cout << "hello world---cout" << std::endl ; std::cerr &a...

2019-04-25 16:56:15

阅读数 421

评论数 0

Dev - 配置快捷键

Tools->Configure Shortcuts... Ctrl+Enter:Jupyter Notebook'sshortcut to run python_scripts.

2019-04-25 16:02:58

阅读数 439

评论数 0

Python - Job_Interview_Questions

[ 2019.04.25 ] 更新: 1> 使用Python中的链表来实现大数的相加 class ListNode(object): def __init__(self, x): self.val = x self.next = None 2&gt...

2019-04-25 00:08:08

阅读数 422

评论数 0

Python - 0b、0o、0x

a = 0b010 b = 0o010 c = 0x010 print(type(a),a) print(type(b),b) print(type(c),c) #------------- print(0b010&0b111) print(0b001|0b010) print(0...

2019-04-24 00:23:49

阅读数 456

评论数 0

Python - 解封装(元组、列表、字典)

x = [1,2,3,4] a1,a2,a3,a4 = x print(a1,a2,a3,a4) x = {"A":1,"B":2} a1,a2 = x.values() a11,a22 = x print(a1,a2) print(a11,a22)

2019-04-24 00:21:53

阅读数 428

评论数 0

Python - Recursion(factorial、reverse、fibonacci、hanoi)

def factorial(n): if n<=1: return 1 else: return factorial(n-1)*n if __name__ == "__main__": print(fact...

2019-04-23 17:31:54

阅读数 418

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭