加载中
PHP读txt文件 一次随机读一行

function rarray_rand( $arr ){ return mt_rand( 0, count( $arr ) - 1 ); } function varray_rand( $arr ) { return $arr[rarray_rand($arr)]; } $key = file("./key.txt"...

2014/03/10 17:47
1.7K
用Python的smtp模块发邮件的示例

# -*- coding: UTF-8 -*- import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText msg = MIMEMultipart() msg["From"] = "fuhanw@qq....

2014/03/10 17:47
129
在PyQt中直接使用ui文件并加载qrc资源文件

1. 用Qt设计师创建一个包含qrc资源文件的ui文件 2.打开cmd使用以下命令把qrc资源文件转换成十六进制的py文件 pyrcc4 -o C:\res.py C:\res.qrc pyrcc4 在 C:\Python27\Lib\site-packages\PyQt...

2014/03/10 17:47
1.2W
使用PyInstaller将Python程序打包成一个单独的exe文件

1. 安装步骤略过 网上教程多 2. 用cmd进入PyInstaller的目录 然后执行以下命令: python pyinstaller.py -F C:\test.py 以上命令需要把Python目录加入环境变量 -F 的意思是生成一个单独的exe...

2014/03/10 17:47
5.1K
PHP判断用户所在国家并跳转对应的目录

<?php // 淘宝API查询国家代码 $url = "http://ip.taobao.com/service/getIpInfo.php?ip=".get_client_ip(); $json = json_decode(file_get_contents($url)); $country...

2014/03/10 17:47
1.3K

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部