python - wondering why there is no space in front of the output(.join()) build in fnc -


कोड बहुत सरल है

  chrs = chr (int (ord ('a' ) + random.random () * 26)) भरी हुई = '' .जोइंड (5 * [चर्स]) + '\ n'   

क्यों नहीं chrs के सामने कोई जगह नहीं है ?

क्या आप कृपया कर सकते हैं। एफएनसी वास्तव में काम करें।

    

आउटपुट

  "a * b * c"   / <>   > आउटपुट  <पूर्व>  "abc"   

स्ट्रिंग के सामने रिक्त स्थान के लिए, आपको कुछ संयोजन करना है:

  "" + "" .जोइंड (["a", "b", "c"])   

आउटपुट

  "abc"    

Comments

Post a Comment

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -