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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -