말하는감자

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

2019/06/03 3

iterate multiple sequences with zip

a = 'apple', 'banana', 'mango' b = 1, 2, 3 list_test = list(zip(a, b)) print(list_test) # >>> [('apple', 1), ('banana', 2), ('mango', 3)] dict_test = dict(zip(a, b)) print(dict_test) # >>> {'apple': 1, 'banana': 2, 'mango': 3}

Python/Python__works 2019.06.03

set combinations and operators

#introducing python #set combinations and operators a = {1, 2} b = {2, 3} print(a & b) print(a.intersection(b)) >>> {2} print(a | b) print(a.union(b)) >>> {1,2,3} print(a-b) print(a.difference(b)) >>> {1} print(a^b) print(a.symmetric_difference(b)) >>>{1, 3}

Python/Python__works 2019.06.03

Dictionaries

intoducing python Dictionaries #튜플 생성 empty_tuple = () one_tuple = ('test') #multiple variables assign test_tuple = ('apple', 'banana', 'mango') a, b, c = test_tuple print(a) >>> apple print(b) >>> banana #리스트로 튜플 생성 test_list = ['apple', 'banana', 'mango'] tuple(test_tuple) print(test_tuple) >>> ('apple', 'banana', 'mango') #Dict 생성 empty_dict = {} #리스트를 Dict로 convert 1) test_list = [[1,2],[3,4..

Python/Python__works 2019.06.03
1
더보기
프로필사진

  • 분류 전체보기 (275)
    • Algorithm (18)
      • Algorithm__Codility-Python (9)
      • Algorithm__Codility-Java (0)
      • Algorithm__hackerrank-Java (9)
    • never mind (17)
      • yumyum (3)
      • anything (10)
      • 말하는 고구마 (1)
    • JAVA (30)
      • JAVA__Framework-Springboot (19)
      • JAVA__Interface-JPA (3)
      • JAVA__IDE (2)
      • JAVA__Error (1)
      • JAVA__Works (4)
    • Linux-공통 (12)
      • Linux-공통__vim (2)
      • Linux-공통__shell-script (8)
      • Linux-공통__git (1)
      • Linux-공통__error (0)
    • Linux-WSL (1)
      • Linux-WSL__settings (1)
    • Linux-OracleCentos (3)
      • Linux-OracleCentos__setting.. (1)
      • Linux-OracleCentos__github (2)
    • Linux-centos (59)
      • Linux-centos__java (3)
      • Linux-centos__폐쇄망 (4)
      • Linux-centos__works (34)
      • Linux-centos__python (7)
      • -Linux-centos__nginx-uwsgi (4)
      • Linux-centos__vue (1)
    • Linux-ubuntu (1)
      • Linux-ubuntu__java (0)
      • Linux-ubuntu__python (1)
    • Python (66)
      • Python__works (55)
      • Python__IDE (3)
      • Python__DesignPattern (3)
      • Python__Error (2)
    • Python-Library (4)
      • Python-Library__BeautifulSo.. (3)
      • Python-Library__Selenium (1)
    • Python-Framework (19)
      • Python-Framework (0)
      • Python-Framework__Sanic (5)
      • Python-Framework__Django (6)
      • Python-Framework__Flask (8)
    • Database (8)
      • Database__Mysql (6)
      • Database__Mariadb (0)
      • Database__Oracle (0)
      • Database__Tools (1)
    • API (3)
      • API__google (3)
    • JS (8)
      • JS__node-express게시판만들기 (1)
      • JS__node-works (7)
    • CI (16)
      • CI__Jenkins (15)
      • CI__Docker (1)
    • CloudServer (5)
      • CloudServer__GoogleCloudPla.. (1)
      • CloudServer__NaverCloudPlat.. (0)
      • CloudServer__OracleCloud (2)
      • CloudServer__AmazonWebServi.. (1)
    • Windows (1)
      • Windows__폐쇄망 (1)
    • ETC (1)
      • ETC__Git (1)
    • Computer Science (0)

Tag

shell, SSH, sanic, Jenkins, Slack, Lombok, springboot, centos7, linux, python, kibana, java, MYSQL, git, 파이썬, CentOS, filebeat, flask, pymysql, ElasticSearch,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2019/06   »
일 월 화 수 목 금 토
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바