This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
broker: | |
image: confluentinc/cp-kafka:7.5.2 | |
hostname: broker | |
container_name: broker | |
ports: | |
- "9092:9092" | |
- "9101:9101" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mylist = [1,2,3,"a", "b", "a",1,2,3,1,2,3, "c", "c","a",1,2,3,3,2,1,2,3,1,2,3,2,1] | |
mylist = list(dict.fromkeys(mylist)) | |
#print(mylist) | |
# مقادیر تکراری در لیست را حذف میکند | |
#-------------------------------------------------------------- | |
ascii('hamedۀ') #متن داده شده را در انکودینگ اسکی بر می گرداند | |
#-------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt5 import QtCore, QtGui, QtWidgets | |
class Ui_MainWindow(object): | |
def setupUi(self, MainWindow): | |
MainWindow.setObjectName("MainWindow") | |
MainWindow.resize(800, 600) | |
self.centralwidget = QtWidgets.QWidget(MainWindow) | |
self.centralwidget.setObjectName("centralwidget") | |
self.pushButton = QtWidgets.QPushButton(self.centralwidget) | |
self.pushButton.setGeometry(QtCore.QRect(370, 220, 75, 23)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt5 import QtCore, QtGui, QtWidgets | |
class Ui_MainWindow(object): | |
def setupUi(self, MainWindow): | |
MainWindow.setObjectName("MainWindow") | |
MainWindow.resize(800, 600) | |
self.centralwidget = QtWidgets.QWidget(MainWindow) | |
self.centralwidget.setObjectName("centralwidget") | |
self.pushButton = QtWidgets.QPushButton(self.centralwidget) | |
self.pushButton.setGeometry(QtCore.QRect(370, 220, 75, 23)) |