Bitcoin Forum
May 06, 2024, 08:43:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Python ile ilgili bir sorunum var  (Read 116 times)
mandown (OP)
Legendary
*
Online Online

Activity: 1918
Merit: 1291



View Profile
April 21, 2020, 05:38:05 AM
 #1

Programlama bildiğimizden değil ya birseyler yapalim boş kalmayalim diyoruz. Bir döngüye ihtiyacım var ama bir sorunum var.

Şimdi ben dışaridan bir programin komut satirindan gelen cevabin sadece ilk satirini okumak istiyorum ama nasil yapacağımi bulamadim. Canim sıkkın Varmidir bir çözümü zaten dün geceyi saçma bir hata ile geçirdim üstüne bu geldi.



.
.BIG WINNER!.
[15.00000000 BTC]


▄████████████████████▄
██████████████████████
██████████▀▀██████████
█████████░░░░█████████
██████████▄▄██████████
███████▀▀████▀▀███████
██████░░░░██░░░░██████
███████▄▄████▄▄███████
████▀▀████▀▀████▀▀████
███░░░░██░░░░██░░░░███
████▄▄████▄▄████▄▄████
██████████████████████

▀████████████████████▀
▄████████████████████▄
██████████████████████
█████▀▀█▀▀▀▀▀▀██▀▀████
█████░░░░░░░░░░░░░████
█████░░░░░░░░░░░░▄████
█████░░▄███▄░░░░██████
█████▄▄███▀░░░░▄██████
█████████░░░░░░███████
████████░░░░░░░███████
███████░░░░░░░░███████
███████▄▄▄▄▄▄▄▄███████

██████████████████████
▀████████████████████▀
▄████████████████████▄
███████████████▀▀▀▀▀▀▀
███████████▀▀▄▄█░░░░░█
█████████▀░░█████░░░░█
███████▀░░░░░████▀░░░▀
██████░░░░░░░░▀▄▄█████
█████░▄░░░░░▄██████▀▀█
████░████▄░███████░░░░
███░█████░█████████░░█
███░░░▀█░██████████░░█
███░░░░░░████▀▀██▀░░░░
███░░░░░░███░░░░░░░░░░

██░▄▄▄▄░████▄▄██▄░░░░
████████████▀▀▀▀▀▀▀██
█████████████░█▀▀▀█░███
██████████▀▀░█▀░░░▀█░▀▀
███████▀░▄▄█░█░░░░░█░█▄
████▀░▄▄████░▀█░░░█▀░██
███░▄████▀▀░▄░▀█░█▀░▄░▀
█▀░███▀▀▀░░███░▀█▀░███░
▀░███▀░░░░░████▄░▄████░
░███▀░░░░░░░█████████░░
░███░░░░░░░░░███████░░░
███▀░██░░░░░░▀░▄▄▄░▀░░░
███░██████▄▄░▄█████▄░▄▄

██░████████░███████░█
▄████████████████████▄
████████▀▀░░░▀▀███████
███▀▀░░░░░▄▄▄░░░░▀▀▀██
██░▀▀▄▄░░░▀▀▀░░░▄▄▀▀██
██░▄▄░░▀▀▄▄░▄▄▀▀░░░░██
██░▀▀░░░░░░█░░░░░██░██
██░░░▄▄░░░░█░██░░░░░██
██░░░▀▀░░░░█░░░░░░░░██
██░░░░░▄▄░░█░░░░░██░██
██▄░░░░▀▀░░█░██░░░░░██
█████▄▄░░░░█░░░░▄▄████
█████████▄▄█▄▄████████

▀████████████████████▀




Rainbot
Daily Quests
Faucet
1714985017
Hero Member
*
Offline Offline

Posts: 1714985017

View Profile Personal Message (Offline)

Ignore
1714985017
Reply with quote  #2

1714985017
Report to moderator
1714985017
Hero Member
*
Offline Offline

Posts: 1714985017

View Profile Personal Message (Offline)

Ignore
1714985017
Reply with quote  #2

1714985017
Report to moderator
1714985017
Hero Member
*
Offline Offline

Posts: 1714985017

View Profile Personal Message (Offline)

Ignore
1714985017
Reply with quote  #2

1714985017
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714985017
Hero Member
*
Offline Offline

Posts: 1714985017

View Profile Personal Message (Offline)

Ignore
1714985017
Reply with quote  #2

1714985017
Report to moderator
onurgozupek
Hero Member
*****
Online Online

Activity: 1288
Merit: 592


In #Bitcoin me trust


View Profile WWW
April 21, 2020, 07:26:23 AM
 #2

Dışarıdan gelen dosya derken? Formatı ne? Json mı Txt metin dosyası mı, formatlı HTML mi?

Json veya ise json.load("dosya") ile;

Düzmetin (txt) ise open ile:

with open('filename') as f:
    lines = [line.rstrip() for line in f]

HTML ise Scrap ile (mesela Scrapy kütüphanesi ile)

okuyabilirsin.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!