你如何*在非GUI工作中使用Python? [英] How do *you* use Python in non-GUI work?

查看:56
本文介绍了你如何*在非GUI工作中使用Python?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有人。我想我会为自己的兴趣问一个普遍的问题。每次我想到我可能在Python中做的事情,它通常涉及创建一个GUI界面,所以我想知道你们用Python做什么样的工作*不涉及任何GUI工作。这可能是你为自己的利益而写的任何小脚本,或者你在工作中做的事情,如果你想谈论这个! :)


谢谢。

解决方案

5月18日,5:20 ??? pm,John Salerno< johnj ... @ NOSPAMgmail.comwrote:


嘿所有。我想我会为自己的兴趣问一个普遍的问题。每次我想到我可能在Python中做的事情,它通常涉及创建一个GUI界面,所以我想知道你们用Python做什么样的工作*不涉及任何GUI工作。这可能是你为自己的利益而写的任何小脚本,或者你在工作中做的事情,如果你想谈论这个! :)


谢谢。



很奇怪,我从2.2版本开始就使用Python而且我已经

从不需要GUI。我做的事情(看看我的Python目录最近6个月的

):


- 如何从IMDB中删除电影收据数据

并将它们插入到MS-Access数据库中


- 如何从网页中抓取.jpgs(简单

文件传输,无显示需要)


- 如何在SQLlite3中做笛卡尔积?


- 如何从
$序列创建多项式b $ b使用Newton的前向差异方法


- 如何计算复活节的日期


- 如何构造任意长度循环在

Collat​​z猜想


- 如何找到终极周期(同样在Collat​​z中

猜想)


- 有效的循环检测比较Brent'和

Sedgewick的循环检测算法


- 查找周期3n + C系统


- 分配W大理石进入D订购的垃圾箱

每个bin包含最少1的约束
- 分配W弹珠进入D订购的箱子

每个箱子包含的约束至少1

并且没有箱子超过M


- 一种Python Cartesian产品,除了

Permutaions with Replacement ,也给出子集

排列没有替换,组合与

替换和组合无需替换


- 证明彼得的谬误得分者的证据
每分钟猜想的b
$ b - 证明了Alan Tyte的证据的谬误。

Collat​​z猜想


- 证明Ken Conrow的证据的谬误of

Collat​​z猜想


- 如何识别无限解的哪些成员

到3n的给定Sequnce Vector + C系统位于琐碎图形组件上的


- 基于

Collat​​z猜想开发一种新颖的保理算法


我认为在任何这些应用程序中都不需要GUI。


嘿所有。我想我会为自己的兴趣问一个普遍的问题。每个


时间我想起我可能会用Python做的事情,它通常涉及创建

a GUI界面,所以我想知道什么样的你们都在使用Python工作

,*不涉及任何GUI工作。这可能是你为自己的利益而写的任何小脚本,或者你在工作中做的事情,如果你想说话那就是b $ b b! :)



web apps

manage / format / write cv

将jpg转换为gif

启动/停止/管理PC群集上的并行运行

等等。


实际上,我从来没有用GUI编写任何东西(除非你统计网络应用程序)。


干杯,

Daniel

-

Psss ,psss,爱不释手! - http://www.cafepress.com/putitdown


5月19日上午12:20,John Salerno< johnj ... @ NOSPAMgmail.com写道:


嘿所有。我想我会为自己的兴趣问一个普遍的问题。每次我想到我可能在Python中做的事情,它通常涉及创建一个GUI界面,所以我想知道你们用Python做什么样的工作*不涉及任何GUI工作。这可能是你为自己的利益而写的任何小脚本,或者你在工作中做的事情,如果你想谈论这个! :)



回到Unix的旧时代,程序往往不小,可以

只做一件事,做得很好。他们没有gui,并且所有

交互来自命令行选项。程序从命令行调用

,输入和输出从一个

程序传送到另一个程序(stdin输入,stdout输出)。


今天,预计程序应该有一个GUI。大多数人都不知道如何使用没有一个程序的
。作为一个

的结果,程序在与其他人交互时变得更穷,并且b $ b变得臃肿并且变得单一。今天的程序是单片的

野兽,跨越数十或数百兆字节,其中大部分

代码复制了其他所有程序中的功能。


我更喜欢一个程序没有GUI,如果它不需要用户

交互超出可以通过命令

行轻松完成的交互。有时我认为gui变得势不可挡,并且混淆了程序中的实际功能。当我为其他人编写程序时,通常需要GUI。但是当我收到向这样的程序添加新功能的请求时,它往往是不重要的,而不是程序的真正功能。


回答你的问题:我必须在必要时添加GUI。但是因为

似乎人们变成了计算机文盲,无法使用键盘使用b / b
只能轻松点击

输入设备,现在大部分时间都是。



Hey all. Just thought I''d ask a general question for my own interest. Every time I think of something I might do in Python, it usually involves creating a GUI interface, so I was wondering what kind of work you all do with Python that does *not* involve any GUI work. This could be any little scripts you write for your own benefit, or what you do at work, if you feel like talking about that! :)

Thanks.

解决方案

On May 18, 5:20???pm, John Salerno <johnj...@NOSPAMgmail.comwrote:

Hey all. Just thought I''d ask a general question for my own interest. Every time I think of something I might do in Python, it usually involves creating a GUI interface, so I was wondering what kind of work you all do with Python that does *not* involve any GUI work. This could be any little scripts you write for your own benefit, or what you do at work, if you feel like talking about that! :)

Thanks.

Odd, I''ve been using Python since ver 2.2 and I''ve
NEVER needed a GUI. I do things like (looking at the
last 6 months of my Python directory):

- how to scrape movie receipt data from IMDB
and insert them into an MS-Access database

- how to scrape .jpgs from a web page (simple
file transfer, no display needed)

- how to do a Cartesian Product in SQLlite3

- how to creat a polynomial from a sequence of
numbers using Newton''s Forward Differences method

- how to calculate the date of Easter

- how to construct arbitrary length cycles in the
Collatz Conjecture

- how to find the Ultimate Cycle (also in Collatz
Conjecture)

- efficient cycle detection comparing Brent''s and
Sedgewick''s cycle detection algorithms

- finding the cycles of 3n+C systems

- partioning W marbles into D ordered bins with
the constraint that each bin contain a minimum of 1

- partioning W marbles into D ordered bins with
the constraint that each bin contain a minimum of 1
and that no bin exceeds M

- a Python Cartesian Product that in addition to
Permutaions with Replacement, also gives the subsets
Permutations without Replacement, Combinations with
Replacement and Combinations without Replacement

- demonstrating the fallacy of Peter Scorer''s "proof"
of the Collatz Conjecture

- demonstrating the fallacy of Alan Tyte''s "proof" of
the Collatz Conjecture

- demonstrating the fallacy of Ken Conrow''s "proof" of
the Collatz Conjecture

- how to identify which members of the infinite solutions
to a given Sequnce Vector of a 3n+C system are located
on the trivial graph component

- developing a novel factoring algorithm based on the
Collatz Conjecture

I see no need for GUI in any of these applications.


Hey all. Just thought I''d ask a general question for my own interest. Every

time I think of something I might do in Python, it usually involves creating
a GUI interface, so I was wondering what kind of work you all do with Python
that does *not* involve any GUI work. This could be any little scripts you
write for your own benefit, or what you do at work, if you feel like talking
about that! :)

web apps
manage/format/write cv
convert jpg to gif
start/stop/manage parallel runs on a PC cluster
etc :)

Actually, I''ve never written anything with a GUI (unless you count web apps).

Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown


On May 19, 12:20 am, John Salerno <johnj...@NOSPAMgmail.comwrote:

Hey all. Just thought I''d ask a general question for my own interest. Every time I think of something I might do in Python, it usually involves creating a GUI interface, so I was wondering what kind of work you all do with Python that does *not* involve any GUI work. This could be any little scripts you write for your own benefit, or what you do at work, if you feel like talking about that! :)


Back in the ''old days'' of Unix, programs tended not to be small, could
only do one thing, and did it well. They had no gui, and all
interaction came from command line options. The programs were invoked
from the command line, and input and output were piped from one
program to another (input on stdin, output on stdout).

Today, it is expected that programs should have a GUI. The majority do
not even know how to use a program that does not have one. As a
result, programs have become poorer at interacting with other, and
become bloated and grown monolithic. Today''s programs are monolithic
beasts spanning tens or hundreds of megabytes, where the bulk of the
code duplicates functionality found in every other program.

I prefer that a program has no GUI if it does not need user
interaction beyond what can be easily accomplished from the command
line. Sometimes I think gui becomes overwhelming, and obfuscates the
real functionality in the program. When I write program''s for others
people, a GUI is usually expected. But when I get requests for adding
new functionality to such a program, it tends to be for unimportant
GUI stuff rather than real functionality to the program.

To answer your question: I only add GUIs when I have to. But because
it seems that people are becoming computer illiterate, incapable of
using a keyboard, and only comfortable with a certain point-and-click
input device, it tends to be most of the time now.



这篇关于你如何*在非GUI工作中使用Python?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆