Learn Python Easy Way
Thursday, August 13, 2015
% in python
http://stackoverflow.com/questions/997797/what-does-s-mean-in-python
It is a string formatting syntax (which it borrows from C).
print("my name is: %s" % 'hello') : is same as
printf("my name is: %s", "hello") : % = , of C
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment