python里面mimetools.choose_boundary()是什么意思,还有我网页操作知识比较缺乏,请问有什么这方面的书吗
答案:2 悬赏:50
解决时间 2021-11-25 01:45
- 提问者网友:房东的猫
- 2021-11-24 17:37
谢谢
最佳答案
- 二级知识专家网友:蜜罐小熊
- 2021-11-24 18:40
The string chosen is unique within a single program run, and
incorporates the user id (if available), process id (if available),
and current time. So it's very unlikely the returned string appears
in message text, but there's no guarantee.
>>> mimetools.choose_boundary()
'127.0.0.1.1001.1778.1295230270.893.1'
>>> mimetools.choose_boundary()
'127.0.0.1.1001.1778.1295230693.707.2'
1001是通过 os.getuid()得到,
1778是通过os.getpid()得到 process id
1295230693.707 time.time()得到
1(2)调用次数
incorporates the user id (if available), process id (if available),
and current time. So it's very unlikely the returned string appears
in message text, but there's no guarantee.
>>> mimetools.choose_boundary()
'127.0.0.1.1001.1778.1295230270.893.1'
>>> mimetools.choose_boundary()
'127.0.0.1.1001.1778.1295230693.707.2'
1001是通过 os.getuid()得到,
1778是通过os.getpid()得到 process id
1295230693.707 time.time()得到
1(2)调用次数
全部回答
- 1楼网友:甜野猫
- 2021-11-24 19:18
可以私聊我~
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
• 手机登qq时,显示手机磁盘不足,清理后重新登 |
• 刺客的套装怎么选啊? |