Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
如何得到网卡的mac地址
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
HD  
View profile   Translate to Translated (View Original)
 More options Nov 23 2007, 8:51 am
From: HD <hdc...@gmail.com>
Date: Fri, 23 Nov 2007 21:51:39 +0800
Local: Fri, Nov 23 2007 8:51 am
Subject: Re: [python-chinese] 如何得到网卡的mac地址

请见
http://bitten.edgewall.org/browser/trunk/bitten/build/api.py
中的CommandLine的代码,写的非常的好。它是BSD的授权。 :)

在07-11-23,篱笆 <namel...@gmail.com> 写道:

> RT
> 有人说用下面方式:
> import os
> os.system('ipconfig /all')
> 这样也只能得到使命是否运行成功!(0/1)
> 还有别的好方法吗?

> _______________________________________________
> python-chinese
> Post: send python-chin...@lists.python.cn
> Subscribe: send subscribe to python-chinese-requ...@lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-requ...@lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese

--
HD(燃烧中的火)
我工作我快乐,我勤奋我收获。请与我一起快乐,与我一起收获。

_______________________________________________
python-chinese
Post: send python-chin...@lists.python.cn
Subscribe: send subscribe to python-chinese-requ...@lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-requ...@lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jiahua Huang  
View profile   Translate to Translated (View Original)
 More options Nov 27 2007, 4:30 am
From: "Jiahua Huang" <jhuangjia...@gmail.com>
Date: Tue, 27 Nov 2007 17:30:08 +0800
Local: Tues, Nov 27 2007 4:30 am
Subject: Re: [python-chinese] 如何得到网卡的mac地址
你干吗读个命令输出都要用临时文件?

另外, os.system("1.txt") 之类在并且只有在 Windows 下也许可以。

上次就不知道谁老在问 pdf 文件怎么不能被"执行"了

On Nov 23, 2007 3:39 PM, 昆仑 <jacky...@163.com> wrote:

> 哦,明白了。
> 不过,不知道是不是还是可以重定向到文件呢?

> 另外,还有多少种办法可以执行外部的程序?

> 执行外部的程序是否可以是文档而不是可执行程序?
> 比如是否可以os.system("1.txt")然后自动打开记事本来编辑1.txt?

_______________________________________________
python-chinese
Post: send python-chin...@lists.python.cn
Subscribe: send subscribe to python-chinese-requ...@lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-requ...@lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jiahua Huang  
View profile   Translate to Translated (View Original)
 More options Nov 27 2007, 4:31 am
From: "Jiahua Huang" <jhuangjia...@gmail.com>
Date: Tue, 27 Nov 2007 17:31:42 +0800
Local: Tues, Nov 27 2007 4:31 am
Subject: Re: [python-chinese] 如何得到网卡的mac地址
好像不能?

huahua@huahua:~$ python
Python 2.5.1 (r251:54863, Oct  5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import uuid
>>> uuid.uuid4()

UUID('eec21c44-32ea-41bc-9548-24aa1da7f618')
>>> uuid.uuid4()

UUID('d319e43e-11ce-4487-8dcb-36cb62b4c3d4')


On Nov 27, 2007 1:59 PM, 篱笆 <namel...@gmail.com> wrote:
> 我也想知道uuid这块主要是用来处理什么的.
> 2003下import uuid正常
> linux 下好像不能 import uuid
> 会报错.

_______________________________________________
python-chinese
Post: send python-chin...@lists.python.cn
Subscribe: send subscribe to python-chinese-requ...@lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-requ...@lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[python-chinese] 如何得到网卡的mac地址" by Xiao Xin
Xiao Xin  
View profile   Translate to Translated (View Original)
 More options Nov 27 2007, 4:38 am
From: "Xiao Xin" <quake...@gmail.com>
Date: Tue, 27 Nov 2007 17:38:19 +0800
Local: Tues, Nov 27 2007 4:38 am
Subject: Re: [Woodpecker-Py::1081] Re: [python-chinese] 如何得到网卡的mac地址

MAC地址可以考虑用netifaces-0.3.tar.gz是一个c写的python模块
据说还兼容windows平台,不过没试过,代码里确实有windows处理的部分
http://alastairs-place.net/netifaces

2007/11/27, Jiahua Huang <jhuangjia...@gmail.com>:

--

Stable, Giant and Fastest what we chasing


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google