Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プログラミング中にリストの任意の部分を選択して保存したい
f.save[i:j] のようなコマンドを探しています。
f = open ("text.txt","w") f.write("123456789") **thats nine bit and ı wanna selec between second and fifth bit ** a = f.save[2:5]
そんな感じ
import pickle f = open("text.txt","w") pickle.dump("123456789"[2:5], f) f.close()