M
M
Monty Python2017-10-18 07:06:47
Python
Monty Python, 2017-10-18 07:06:47

Where and how to save parts of the code?

With education, namely practice, you get a bunch of code that is not always bad, and often as you develop, you want to run back in time and get the code that was during training so as not to print it again, but it was not saved anywhere. How exactly do you act in such cases?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Ternick, 2019-07-17
@Kactus

If I understand correctly what you want ;)

s = {"oid":"1455","link":"https://vk.com/id248376867?w=wall248376867_531","orid":19282},{"oid":"1497","link":"https://vk.com/wall59628_30351","orid":19283}
print(s[1])

It turns out :
The variable s is your text :)
And as I understand it, this is something like an array of dictionaries :)

I
Ilya Ponomarev, 2017-10-18
@Austin1

Use git and host somewhere (you can host both the project and just a piece of code):

https://github.com/
https://bitbucket.org/
https://about.gitlab.com/

you beat your hand to work with the git.
If just a piece of code, then you can: gist.github.com

D
Don Gan, 2017-10-18
@PravdorubMSK

With education, namely practice, a bunch of code is obtained, which is not always bad
believe me, he is
1. bad
2. no one needs him. even you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question