随笔分类 - python
摘要:``` coding: utf 8 from __future__ import unicode_literals from django.http import JsonResponse import json from django.shortcuts import render from ba
阅读全文
摘要:``` pyrcc4 -o images.py images.qrc self.setWindowIcon(QIcon(':img/background.ico'))
```
阅读全文
摘要:··· 新建一个对象的方法有以下几种: Person.objects.create(name=name,age=age) p = Person(name="WZ", age=23) p.save() p = Person(name="TWZ") p.age = 23 p.save() Person.
阅读全文
摘要:```
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@version: 001
@author: jianpan
@file: MyQThread.py
@time: 2017/6/3 11:54
"""
from PyQt4.QtCore import *
import Tkinter as tk
import multiprocessin...
阅读全文
摘要:``` #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@version: 001
@author: jianpan
@file: test1.py
@time: 2017/6/4 16:14
""" # coding: utf-8
import multiprocessing
import time
import os
import psu...
阅读全文
摘要:```
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@version: 001
@author: jianpan
@file: MySocketServer.py
@time: 2017/6/3 11:00
""" # -*- coding:utf-8 -*- from SocketServer import ThreadingTCPSe...
阅读全文
摘要:```
# coding:utf-8
import socket
import sys import os reload(sys)
sys.setdefaultencoding("utf-8")
# set host and port
HOST, PORT = '10.72.80.141', 8088 class SocketFromServer(): def __init__(s...
阅读全文
浙公网安备 33010602011771号