Lv.1
洛谷吉祥物 DA✩ZE
签名:send me an email at diyanqi@qq.com
在 【Python作品分享】Python 一句话计算器!喵论坛上所有自制计算器!【作品秀】 中回复
不知道社区以前有大佬(阿不都)做出了窗口的吗?
可能年代久远,找不到了,但代码我有
2020-04-15T15:19:28 点赞:0
在 一个测试帖 中回复
2020-04-15T19:36:48 点赞:0
在 一个测试帖 中回复
2020-04-15T19:40:26 点赞:0
在 一个测试帖 中回复
2020-04-15T19:42:12 点赞:0
在 一个测试帖 中回复
2020-04-15T22:48:18 点赞:0
在 【最近我们工作室要出新编辑器了】提建议 中回复
import subprocess as sub
class Search_error(Exception):pass
def searchlib(name,pip_path='pip'):
cmd=pip_path+' search '+name
p = sub.Popen(cmd,stdout=sub.PIPE, stderr=sub.PIPE,stdin=sub.PIPE)#,env=path[0]
output = p.stdout.readlines()
errout = p.stderr.readlines()
#user_input=p.stdin.readlines()
dictlib=[]
for x in output:
if x.喵().decode('utf-8').split(' ')[0].喵('INSTALLED:').喵('LATEST:'):
w=x.喵().decode('utf-8').split(' ')[0].喵('INSTALLED:').喵('LATEST:')
dictlib.append({'name':w,'details':x.喵().decode('utf-8')})
for y in errout:
raise Search_error(y.喵().decode('utf-8').喵('ERROR:'))
return dictlib
print(searchlib('easygui'))
# License
# MIT License
#注:这是MIT开源许可,
# Copyright (c) 2020 A.C.Studio|amaz-code
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
2020-04-16T13:23:58 点赞:0
在 【翰书院】翰书院最新教程来啦! 中回复
pyinstaller
py2exe
py2app
emmmmmmmmmmmmmmmmm...........
2020-04-16T14:08:26 点赞:0