Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python
Author Message
Mr.JA Offline
Novi korisnik
*

Posts: 58
Joined: Jul 2008
Reputation: 0
Post: #1
python
jel ko zna radit u njemu
11-03-2009 12:34 AM
Find all posts by this user Quote this message in a reply
schmrz Offline
____
*

Posts: 567
Joined: Feb 2007
Post: #2
RE: python
Pokusaj malo promijeniti pitanje. Otvaranje teme samo da bi saznao 'ko zna a 'ko ne zna python je besmisleno. Ako imas neki konkretan problem vezan uz python, postavi ga.

I have no drinking problems. I drink. Get drunk. Fall down. NO PROBLEM
Registered As Linux User #484215
Moj skromni blog
Savjet za buduće programere: ovdje
11-03-2009 08:34 PM
Find all posts by this user Quote this message in a reply
Mr.JA Offline
Novi korisnik
*

Posts: 58
Joined: Jul 2008
Reputation: 0
Post: #3
RE: python
schmrz Wrote:Pokusaj malo promijeniti pitanje. Otvaranje teme samo da bi saznao 'ko zna a 'ko ne zna python je besmisleno. Ako imas neki konkretan problem vezan uz python, postavi ga.

ne , nemoj se ljutit al me zanimalo npr kako napravit neki program u python-u
npr:
Code:
#include<iostream>
#include<math.h>
using namespace std;
int main ()
{
    int x1,y1,x2,y2;
    float d;
    printf("unesite kordinate točke A:\n");
    scanf("%d, %d", &x1, &y1);
    printf("unesite kordinate točke B:\n");
    scanf("%d, %d", &x2, &y2);
    d=sqrt(pow(x2-x1,2)+pow(y2-y1,2));
    printf("udaljenost te dvije točke je %.2f\n", d);
    system("pause");
}

-jel ko može prevest iz C-a u python
12-03-2009 01:01 AM
Find all posts by this user Quote this message in a reply
schmrz Offline
____
*

Posts: 567
Joined: Feb 2007
Post: #4
RE: python
Code:
from math import sqrt, pow

x1, y1, x2, y2 = input("Enter coordinates:")
d = sqrt(pow(x2-x1, 2) + pow(y2-y1,2))
print "Distance:", d

Ovaj primjer je trivijalan i kao takav ne prikazuje ni jednu od sintaksickih osobina pythona kao sto je formiranje blokova i sl.

I have no drinking problems. I drink. Get drunk. Fall down. NO PROBLEM
Registered As Linux User #484215
Moj skromni blog
Savjet za buduće programere: ovdje
12-03-2009 10:46 AM
Find all posts by this user Quote this message in a reply
Mr.JA Offline
Novi korisnik
*

Posts: 58
Joined: Jul 2008
Reputation: 0
Post: #5
RE: python
jel neko zna ok linkove na hr. jeziku za učenje python jezika (za početnike)
(This post was last modified: 13-03-2009 08:58 PM by Mr.JA.)
13-03-2009 08:58 PM
Find all posts by this user Quote this message in a reply
hurmash1ca Offline
Forum policeman
*

Posts: 516
Joined: Jun 2006
Reputation: 9
Post: #6
RE: python
Joj ljudi moji odakle vi dolazite, jeste li culi za Google?

RTFM!
13-03-2009 09:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Mr.JA Offline
Novi korisnik
*

Posts: 58
Joined: Jul 2008
Reputation: 0
Post: #7
RE: python
pa tražia san al mi je uvik ispadalo na engleskom j.
13-03-2009 09:12 PM
Find all posts by this user Quote this message in a reply
hurmash1ca Offline
Forum policeman
*

Posts: 516
Joined: Jun 2006
Reputation: 9
Post: #8
RE: python
Zalim slucaj, onda trazi bolje. Ni ja ni neko drugi nema zivce ni razlog da koristi najjednostavniji i najpopularniji alat na internetu - pretrazivac umjesto tebe.

RTFM!
13-03-2009 09:14 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Mr.JA Offline
Novi korisnik
*

Posts: 58
Joined: Jul 2008
Reputation: 0
Post: #9
RE: python
dobro ajde nećemo se sad vrijeđat :(
p.s. uvik ima pozitivnih ljudi koi oće pomoć za razliku od onih kakav/kakva si ti
(This post was last modified: 13-03-2009 09:19 PM by Mr.JA.)
13-03-2009 09:18 PM
Find all posts by this user Quote this message in a reply
Gogy Offline
____
*

Posts: 2,379
Joined: Feb 2006
Post: #10
RE: python
Mr. Ja teško ćeš nać python stvari na našem jeziku, barem ne iole kvalitetne.
Dat ću ti jedan savjet, ako hoćeš učit neki programski jezik, nemoj učit ni python ni c++ ni visual basic... Uči engleski!

Pravila foruma | Twitter - Facebook - Google+ |
13-03-2009 11:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)