初级Python练习?

2024-04-26 22:18:23 发布

您现在位置:Python中文网/ 问答频道 /正文

好吧,我们来看看Python的流程。读几本书,发现它相当容易,因为我已经有一些从C++和java中获得的经验,Python是我迄今为止最喜欢的。

不管怎样,我得到了很多关于python的信息,但是还没有发挥太大的作用。因此,我想知道的是,是否有任何类型的实践问题,我可以使用在线?如果有人能指点我,我将不胜感激。


Tags: 信息类型经验流程java指点几本书
3条回答

你会发现在http://singpath.com有很好的初学者练习。。。这个“游戏”是交互式的,让你有能力编辑你的答案,而且练习比Python挑战更实用,而且根据你的技能水平有多个级别可供选择。最重要的是,玩得开心,欢迎来到Python!

另外,您的经验使您成为我的Python书籍《核心Python编程》的目标读者的中心,该书的目标是尽可能快速、深入地教授Python。在http://corepython.com上的评论、哲学和其他信息

[2013年5月更新]除了SingPath之外,现在还有许多其他选择:

http://codecademy.com/tracks/python

http://codingbat.com/python

http://pythontutor.com

http://learnpython.org

http://pyschools.com

http://learnstreet.com/lessons/study/python[2015年6月更新:失效。。。见this]

您还可以尝试CheckIO,这是一种需要在Python 2.7或3.3中发布解决方案才能在游戏中升级的任务。很有趣,有一个很大的问题和支持社区。

从他们的Main Wiki Page

Welcome to CheckIO – a service that has united all levels of Python developers – from beginners up to the real experts!  

Here you can learn Python coding, try yourself in solving various kinds of problems and share your ideas with others. Moreover, you can consider original solutions of other users, exchange opinions and find new friends.  

If you are just starting with Python – CheckIO is a great chance for you to learn the basics and get a rich practice in solving different tasks. If you’re an experienced coder, here you’ll find an exciting opportunity to perfect your skills and learn new alternative logics from others. On CheckIO you can not only resolve the existing tasks, but also provide your own ones and even get points for them. Enjoy the possibility of playing logical games, participating in exciting competitions and share your success with friends in CheckIO.org!

尝试Project Euler

Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems.

问题是:

Add all the natural numbers below 1000 that are multiples of 3 or 5.

这个问题可能至少会向您介绍Python for循环和range()内置函数。它可能会引导您发现列表理解、生成器表达式和sum()内置函数。

相关问题 更多 >