程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python cultivation record

編輯:Python


Two years ago. , All kinds of learning insects swarm themselves , Deal with a large number of things in reality ,Python The road of learning is dragging on , I resigned in February last year and took the postgraduate entrance examination by myself , It has opened the era of high school love learning mode ^_^. Hey , Don't talk much , Write small everyday demo Direct code . If you need children's shoes, you can refer to , Don't spray if you don't like it , Don't accept criticism

Simple browser development :

      1、 install Python3.4 Default in C Under the plate :C:\Python34

      2、 install PyQt5: The default path :C:\Python34

      3、 After the installation , Write a test demo:ps: The tool I use is :PyCharm

import sys
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
class MainWindow(QMainWindow):
def __init__(self,*args,**kwargs):
super().__init__(*args,**kwargs)
self.setWindowTitle("My First App")
label=QLabel("Welcome to xuyanhuiAPP")
label.setAlignment(Qt.AlignCenter)
self.setCentralWidget(label)
app=QApplication(sys.argv)
window=MainWindow()
window.show()
app.exec_()empty



  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved