Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,895 questions

51,826 answers

573 users

How to split string with bytes in Python

1 Answer

0 votes
b = b"python,php,c#,java"

elements = b.split(b",")

print(len(elements))
print(elements)


'''
run:

4
[b'python', b'php', b'c#', b'java']

'''

 



answered Sep 8, 2018 by avibootz

Related questions

1 answer 165 views
165 views asked Sep 16, 2020 by avibootz
3 answers 277 views
277 views asked May 25, 2020 by avibootz
1 answer 137 views
137 views asked May 29, 2018 by avibootz
1 answer 180 views
1 answer 182 views
1 answer 197 views
...