简介PyInstaller可以用来打包python应用程序,打包完的程序就可以在没有安装Python解释器的机器上运行了。PyInstaller支持Python 2.7和Python 3.3+。可以在Windows、Mac OS X和Linux上使用,但是并不是跨平台的,而是说你要是希望打包成.exe文件,需要在Windows系统上运行PyInstaller进行打包工作;打包成mac app,需要在Mac OS上使用。安装pip install pyinstallerWindows环境下需要先安装pywin32.exe使用PyInstallerPyInstaller分析你的python程序,找到所有的依赖项。然后将依赖文件和python解释器放到一个文件夹下或者一个可执行文件中。打包成一个文件夹当使用PyInstaller打包的时候,默认生成一个文件夹,文件夹中包含所有依赖项,以及可执行文件。打包成文件夹的好处就是debug的时候可以清楚的看到依赖项有没有包含。另一个好处是更新的时候,只需要更新可执行文件就可以了。当然缺点也很明显,不方便,不易管理。pyinstaller scr...
pyinstaller教程

pyinstaller教程

What is JSON Web Token?JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA. Although JWTs can be encrypted to also provide secrecy between parties, we will focus on signed tokens. Signed tokens ...
JSON Web Tokens介绍

JSON Web Tokens介绍

通常情况下,直接调用WebBrowser控件的时候默认是IE7内核,实在是不美观。using Microsoft.Win32; using System; using System.ComponentModel; namespace ClassLibrary { /// <summary> /// 设置Webbrowser控件所用IE内核版本 /// </summary> public class WebBrowserHelper { /// 修改注册表信息来兼容当前程序 /// /// </summary> public static void SetWebBrowserFeatures(int ieVersion) { // Win8及以上,默认浏览器IE10及以上 OperatingSystem os = Environment.OSVersion; ...
C#设置WebBrowser默认的IE内核

C#设置WebBrowser默认的IE内核

using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.Serialization; using System.Security.Cryptography; using System.Text; // // Copyright (c) 2006 Damien Miller <djm@mindrot.org> // Copyright (c) 2013 Ryan D. Emerle // // Permission to use, copy, modify, and distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE S...
BCrypt算法的C#实现

BCrypt算法的C#实现