Blog of James Brown
  • Archives
  • Categories
  • Tags
  • About

dictionary creation

2024-04-23
Python Object Value Shorthand

Use sorcery

1
2
3
4
import sorcery
a,b,c = 1,2,3
mydict = sorcery.dict_of(a,b,c)

Related question

Read More

Links

  • Project Cybergod
  • Project Pyjom
  • Project Prometheus
  • Project Pyjom
  • Blog Source Code
  • My Github
  • Samoyedsun's Blog
  • Atlant1c's Blog
  • Gregoryuan's Blog
  • Yubingtao's Blog

© 2024 James Brown with help from Hexo and Twitter Bootstrap. Theme by Freemind.

▲