Skip to content

ats-min.com

Daily memo what I learned

  • python
  • Django
  • CheckIO
  • JavaScript
  • Web Service
  • Linux
  • Else
    • Network
    • git
    • Salesforce
    • VBScript

Python: format

atsmin2015年2月9日2015年2月9日 python No Comments

I learned string.format() today.

template = "{foo}, {bar}, {baz}"
print template.format(foo="FOO", bar="BAR", baz="BAZ")
>>
FOO, BAR, BAZ
  • ← Python: True or False
  • Git: ignore file permission change →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Powershell : JSON as commandline args
  • libvirt : firewall blocks forwarding
  • LXC : login failed
  • Xen : Nested VM
  • Raspberry Pi : Create SWAP volume on LVM

Recent Comments

    Archives

    • December 2021
    • September 2021
    • May 2021
    • September 2019
    • January 2019
    • February 2018
    • October 2017
    • July 2017
    • May 2017
    • April 2017
    • January 2017
    • December 2016
    • November 2016
    • May 2016
    • April 2016
    • March 2016
    • February 2016
    • January 2016
    • December 2015
    • October 2015
    • September 2015
    • August 2015
    • July 2015
    • June 2015
    • May 2015
    • April 2015
    • March 2015
    • February 2015
    • November 2014
    • October 2014
    • September 2014
    • July 2014
    • June 2014
    • May 2014

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Copyright © 2022 ats-min.com. Theme by Colorlib Powered by WordPress