V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  fzinfz  ›  全部回复第 46 页 / 共 46 页
回复总数  905
1 ... 37  38  39  40  41  42  43  44  45  46  
2015 年 5 月 7 日
回复了 tanteng 创建的主题 Python 写的 python 脚本怎样在别人的机子上直接运行
http://cx-freeze.sourceforge.net/

cx_Freeze is a set of scripts and modules for freezing Python scripts into executables, in much the same way that py2exe and py2app do. Unlike these two tools, cx_Freeze is cross platform and should work on any platform that Python itself works on. It supports Python 2.6 or higher (including Python 3).
Download/Install

SourceForge.net Logo
Version 4.3.4, released December 26, 2014

Install by issuing the command

pip install cx_Freeze
2015 年 5 月 7 日
回复了 commoccoom 创建的主题 Python 用正则表达式怎么处理中文?
In [30]: s = b'\xe7\xa9\xbf\xe5\xb1\xb1\xe7\x94\xb2\xe5\x88\xb0'

In [31]: sd = s.decode('utf-8')

In [32]: sd
Out[32]: '穿山甲到'

In [33]: rs = re.search('山',sd)

In [34]: rs
Out[34]: <_sre.SRE_Match object; span=(1, 2), match='山'>
2015 年 4 月 30 日
回复了 webskyn 创建的主题 C 付费找 VB 编程高手帮忙
这年头VB估计也只有学校用了吧。。。。一般操作word/excel用的是VBA,或者C#
2015 年 4 月 29 日
回复了 pc10201 创建的主题 Python 被 pip 坑了~
你是不pip时sudo了,然后运行没sudo?
which pip/which python或者sys.path看下当前python的path
1 ... 37  38  39  40  41  42  43  44  45  46  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5335 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms · UTC 07:28 · PVG 15:28 · LAX 00:28 · JFK 03:28
♥ Do have faith in what you're doing.