GithubHelp home page GithubHelp logo

idk's People

Watchers

 avatar  avatar

idk's Issues

[2016-05-15] 파이썬 튜플과 리스트

http://stackoverflow.com/questions/626759/whats-the-difference-between-list-and-tuples 에 잘 정리되어 있지만 요약을 해보자면

a = (1,2)
a[1] = 2 # => TypeError: 'tuple' object does not support item assignment
hash([1]) # => TypeError: unhashable type: 'list'
  • tuple은 hashable하므로 딕셔너리의 키로 사용 가능
a = { (1,2) : 'a' }
b = { [1,2] : 'b' } # => TypeError: unhashable type: 'list'
  • tuple은 같은 값을 가지고 있을 경우 hash가 같다. == 으로 비교 가능 (이건 list도 됨). 하지만 identity는 (당연히) 다르다
a = (1, 2)
b = (1, 2)
print hash(a) == hash(b) # True
print a == b # True
print a is b # False

[2017-04-15] Web techs

소화해야 할 웹 기술들 관련 잡스럽게 모음

  • 모듈 (es module / module loader / jsm)
<script type="module"> behaves like "defer" by default, even without "src" (inline script).
You can also use "async" with or without "src".

https://twitter.com/jaffathecake/status/852858643175415809

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.