Merge remote-tracking branch 'origin/master'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Scharnitzky Donát 2020-03-29 17:40:42 +02:00
commit 6df7089900

View File

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# IDE JÖNNEK IMPORTOK
import random import random
import string import string
@ -22,7 +21,6 @@ class MessageSender:
""" """
Inicializálja az osztályt. Inicializálja az osztályt.
""" """
self.id = 0
pass pass
@ -32,20 +30,19 @@ class MessageSender:
return ''.join(random.choice(letters) for i in range(stringLength)) return ''.join(random.choice(letters) for i in range(stringLength))
def CreateMessage(self, p) -> str: def createMessage(self, p) -> str:
""" """
Ez egy metodus Ez egy metodus
:param szam: :param szam:
:param szoveg: :param szoveg:
:return: str tipus :return: str tipus
""" """
self.id += random.randrange(10000)
data = self.randomString(p) data = self.randomString(p)
return str(self.id) + " " + str(data) return str(data)
pass pass
if __name__ == "__main__": if __name__ == "__main__":
temp = MessageSender() temp = MessageSender()
print(temp.CreateMessage(20)) print(temp.createMessage(20))