wineqq install instructions

    No Comments

    First look at this page: https://phpcj.org/wineqq/

    download the package offered by that page

    extract the package followed by instructions on that page

    Then important things:

    • Run wine-QQ once, wine will auto install mono or something else
    • Download simsun.ttc (download address)
    • copy simsun.ttc to ~/.wine/drive_c/windows/Fonts
    • edit ~/.wine/system.reg

    change

    “MS Shell Dlg”=”Tahoma”
    “MS Shell Dlg 2″=”Tahoma”

    to

    “MS Shell Dlg”=”SimSun”
    “MS Shell Dlg 2″=”SimSun”

    • create zh.reg, insert these:

    REGEDIT4
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
    “Arial”=”simsun”
    “Arial CE,238″=”simsun”
    “Arial CYR,204″=”simsun”
    “Arial Greek,161″=”simsun”
    “Arial TUR,162″=”simsun”
    “Courier New”=”simsun”
    “Courier New CE,238″=”simsun”
    “Courier New CYR,204″=”simsun”
    “Courier New Greek,161″=”simsun”
    “Courier New TUR,162″=”simsun”
    “FixedSys”=”simsun”
    “Helv”=”simsun”
    “Helvetica”=”simsun”
    “MS Sans Serif”=”simsun”
    “MS Shell Dlg”=”simsun”
    “MS Shell Dlg 2″=”simsun”
    “System”=”simsun”
    “Tahoma”=”simsun”
    “Times”=”simsun”
    “Times New Roman CE,238″=”simsun”
    “Times New Roman CYR,204″=”simsun”
    “Times New Roman Greek,161″=”simsun”
    “Times New Roman TUR,162″=”simsun”
    “Tms Rmn”=”simsun”

    • run command: regedit zh.reg
    • run wine-QQ again

    Done!

    Categories: 未分类

    copy problem in Python

    No Comments

    Look at codes below:

    >>> v = [0.5, 0.75, 1.0, 1.5, 2.0]
    >>> m = [v, v, v]
    >>> v[0] = ‘Python’
    >>> m
    [[‘Python’, 0.75, 1.0, 1.5, 2.0], [‘Python’, 0.75, 1.0, 1.5, 2.0], [‘Python’, 0.75, 1.0, 1.5, 2.0]]
    >>> from copy import deepcopy
    >>> v = [0.5, 0.75, 1.0, 1.5, 2.0]
    >>> m = 3*[deepcopy(v), ]
    >>> v[0] = ‘Python’
    >>> m
    [[0.5, 0.75, 1.0, 1.5, 2.0], [0.5, 0.75, 1.0, 1.5, 2.0], [0.5, 0.75, 1.0, 1.5, 2.0]]

    Categories: 未分类