Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: get variable of yaml file
Post: get variable of yaml file
Hello, I have some problem with my program. I have try to solve my problem by myself but I do something wrong. Here my yaml file.
role.one.name: werewolf
role.one.desc: you are a werewolf.
role.two.... |
|
lateublegende |
Homework |
1 |
1,353 |
Feb-24-2020, 07:20 PM |
|
|
Thread: lib for user tchat with other user
Post: lib for user tchat with other user
hey! I’m looking for a lib to send and receive messages with a server. I would have to be able to manage several groups of people who talk at the same time. I looked, but I couldn’t find anything that... |
|
lateublegende |
Networking |
1 |
1,862 |
Oct-04-2019, 04:56 PM |
|
|
Thread: call dict object result key error
Post: RE: call dict object result key error
the dict name was for the example, is not the real name, and thank for the help! |
|
lateublegende |
General Coding Help |
2 |
3,088 |
May-15-2019, 01:08 PM |
|
|
Thread: call dict object result key error
Post: call dict object result key error
hello, my program include a dict, but when I try to call a object of the dict, that result with a KeyEror
actualsearch=0
dict={ 0: 41, 1: 41, 2: 41, }
if dict[int(actualsearch)]==41: #I try int and s... |
|
lateublegende |
General Coding Help |
2 |
3,088 |
May-14-2019, 04:52 PM |
|
|
Thread: dictionnary
Post: dictionnary
I try to make a dict for my code, the dictionnary content the sqaure number and the the value of this square, the dict have 480 value. I need a simple method to create all the value. if I can add more... |
|
lateublegende |
General Coding Help |
1 |
2,483 |
Apr-29-2019, 07:57 PM |
|
|
Thread: int list have no len()
Post: int list have no len()
I try to write my list, but I need len() for write it.
if I write in str, they print 5 item.
this is my code
y=list(map(int, y))
print(y)
y[0]+=1
print(y)
f = sftp.open("/home/pi/SiteCyberdependance... |
|
lateublegende |
General Coding Help |
2 |
2,698 |
Mar-21-2019, 02:06 PM |
|
|
Thread: print number of a list line per line
Post: RE: print number of a list line per line
I have not think to that, is logic. thank for the reply! |
|
lateublegende |
General Coding Help |
2 |
2,762 |
Mar-20-2019, 04:07 PM |
|
|
Thread: print number of a list line per line
Post: print number of a list line per line
I have some trouble with my list. I need to print the number line per line. the list looks like that.[16, 1, 1, 3, 6, 5, 87, 4, 83, 0, 2, 7, 86, 54, 32, 78, 45, 21, 23, 41, 35, 76, 90] #the name of th... |
|
lateublegende |
General Coding Help |
2 |
2,762 |
Mar-15-2019, 04:42 PM |
|
|
Thread: help with list
Post: RE: help with list
thank for the help, is very well explained. |
|
lateublegende |
General Coding Help |
2 |
2,068 |
Mar-01-2019, 05:08 PM |
|
|
Thread: help with list
Post: help with list
when I print the value of my list, he print b'value' and I don't know why the program does that. I think is binairy, but I need the value only. |
|
lateublegende |
General Coding Help |
2 |
2,068 |
Mar-01-2019, 02:14 PM |
|
|
Thread: write in a distant file, code improvement with a list
Post: RE: write in a distant file, code improvement with...
the program get exactly what I want. but when the program write, he write the variable (here is "b") and the the value between "" and he write all the value in one line.
I need just to print the value... |
|
lateublegende |
Code sharing |
7 |
3,913 |
Feb-28-2019, 05:30 PM |
|
|
Thread: write in a distant file, code improvement with a list
Post: RE: write in a distant file, code improvement with...
the content of the file line per line:
16
1
1
3
6
5
87
4
83
0
2
7
86
54
32
78
45
21
23
41
35
76
90 |
|
lateublegende |
Code sharing |
7 |
3,913 |
Feb-26-2019, 08:03 PM |
|
|
Thread: write in a distant file, code improvement with a list
Post: RE: write in a distant file, code improvement with...
This is my code with a list.
import paramiko
line=0
b=[line]
file="/home/pi/SiteCyberdependance/donne/donne.txt"
self=paramiko.SFTPFile.write
readlines=paramiko.SFTPFile.readlines
ssh_client = paramik... |
|
lateublegende |
Code sharing |
7 |
3,913 |
Feb-21-2019, 07:24 PM |
|
|
Thread: write in a distant file, code improvement with a list
Post: write in a distant file, code improvement with a l...
hello, I have a code, and it is simply, but it need to be improved. My code get all value in the line. They assigned the value to the number of the line. After that, they write in the file, line per l... |
|
lateublegende |
Code sharing |
7 |
3,913 |
Feb-19-2019, 06:08 PM |
|
|
Thread: write in a distant file, code improvement with a list
Post: code improvement
hello, I have a code, and it is simply, but it need to be improved. My code get all value in the line. They assigned the value to the number of the line. After that, they write in the file, line per l... |
|
lateublegende |
Code sharing |
7 |
3,913 |
Feb-19-2019, 04:02 PM |
|
|
Thread: 'function' object has no attribute 'write' paramiko
Post: 'function' object has no attribute 'write' paramik...
hello
I want to write in a distant file with sftp.write
my code
write=paramiko.SFTPFile.write
sftp=paramiko.SFTPFile.write
sftp.write(data=hello)but a error occult
Error:AttributeError: 'function' obj... |
|
lateublegende |
General Coding Help |
1 |
5,443 |
Feb-12-2019, 08:32 PM |
|
|
Thread: get the number in the line in text file
Post: RE: get the number in the line in text file
|
lateublegende |
General Coding Help |
2 |
2,544 |
Jan-29-2019, 06:03 PM |
|
|
Thread: get the number in the line in text file
Post: get the number in the line in text file
I need your help (again)
I try to get the number who is stock in the line I need to get. this number can be up to three digits (like ###) and I need to get it and make a var with it, increment it by o... |
|
lateublegende |
General Coding Help |
2 |
2,544 |
Jan-29-2019, 05:42 PM |
|
|
Thread: 'int' object is not subscriptable
Post: RE: 'int' object is not subscriptable
thank for have explain to my what I have do, that not easy to adapt a scipt found on a web site for your script, the next time, I will try to not add many line that just ruin the script. a beginer who... |
|
lateublegende |
General Coding Help |
2 |
11,901 |
Jan-24-2019, 05:31 PM |
|
|
Thread: 'int' object is not subscriptable
Post: 'int' object is not subscriptable
my code
line = line.strip()
except AttributeError:
line = line
line+1
lines = open("T:\donne\donne.txt").read().splitlines()
lines.a... |
|
lateublegende |
General Coding Help |
2 |
11,901 |
Jan-23-2019, 04:39 PM |