Python 3 Programming Tutorial - Sys Module

preview_player
Показать описание

This ability acts as a bridge to the ability to communicate between Python and other languages.

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Рекомендации по теме
Комментарии
Автор

I know this is an old-ass video, but your enthusiasm while talking about this is genuinely infectious, and it’s making me excited to try all of this out

Coffeekitty
Автор

Harrison, you're such a SYS-sy




Edit: what has the world become for this to get a like? but thanks anyway!

omarabdelkadereldarir
Автор

Hi! I massively appreciate this awesome series and all of the effort you put in to helping newbies like me learn this awesome skill. You explain things really simply and motivate me to keep learning.

One thing I have to say about this one, though, is that I had liked all the videos in this series until this one, but it seems like the course just leaped from assuming only basic knowledge to assuming A LOT of preexisting technical knowledge about stderr, stdout, sys.argv, PHP etc without explaining them. This lesson went completely over my head and I think it was aimed more towards experienced coders who are new to the sys module than towards beginner coders.

I'm going to carry on with the course, but I am left feeling a bit frustrated with this lesson

Aside from that minor grumble, massive props for the sharing

leerobinson
Автор

This was really useful to me! but I feel like beginners would be a bit confused, especially when you started mixing up and restating things later in the video. so you may want to redo this video at a later time so its easier to understand.

Jomoko
Автор

I'm a beginer too, and i have to be honest, it toke me like 3 times to watch the entire video, and finally understand what it does, i recomend anyone to follow and do the steps at the same time, and do it again, even if you don't understand what is going on. I did that and at the end of the video i reallizaed what is the objetive of this sys.argv (To me, is like being able to call your program or function from outside of python, for example use a function passing the arguments, and getting the result of the function... but is very complicated to understand...)

robertoquinones
Автор

There are many tutorials on youtube, about this module but the only video that is able to explain me is yours

thank you so much

vishaljuneja
Автор

at first I didn't understand and skipped but came back after watching the next videos and now I don't really understand why I skipped this in the first place xD

feralking
Автор

hey im a little confused here.

1.  so stdin, stdout are just used for printing input/output text as in prompts? and stderr is for red error text?  Im unclear on what other uses these have.

2. having trouble with argv.  i think naming the file sys.py is a little confusing.  I take it you had two identical files ( lets name them temp1.py and misc2.py. ) in two different folders (one at c:/code and other c:/code/testdir) with these lines in them:

import sys
print(sys.argv)

So if im right the main idea is youre able to pass values (arguments) back and forth between one or two python scripts via the command line?  sort of like printing or modifying file contents through CLI?

also I tried typing python misc2.py in cli and it said cant find file (in either folder). so somethings up with my path.  i standard installed python and checked the add py to path option.  feels like i need to add another line to env variables, googled this issue and couldnt get a clear answer.  thanks for help, sorry if this is long im meticulous and just got hung up on this lesson

themolynator
Автор

I am new to python and I find your youtube content very helpful, keep up the good work. I only program as a hobby. I have used java and delphi in the past but I have started using Linux mint and the buss word is python, all so the raspberry pi uses it.

tommyshem
Автор

Hi great tutorials!

Im pretty new to python and i think this one was difficult to understand, so could you maybe do one more about sys and maybe show how to make python and php talk together using sys? 

jakobjensen
Автор

For anyone who wants delayed sentence printing ->

import time
import sys

def delay_prnt(sen):
for char in sen:
print(char, end = "")
sys.stdout.flush()
time.sleep(0.1) # or any other time in sec

delay_print("Red was not the imposter...")

sanjeevsinghrajput
Автор

Out of all the previous videos I have seen so far of this tutorial, this is by far has the poorest explanation. Please make another video clearly explaining these concepts

nafrh
Автор

I wanna say thank you for your great work! I am following your channel and have watched all of the python videos so far!! :-) please keep doing it! 

NicolajTopp
Автор

Wow this helped me understand a ton. Thank you!

SirDonald
Автор

how can I find the path for the sys file?

BookofYAH
Автор

Understood everything except for the last code. It just went over my head.

antifragile
Автор

Why did you use

sys.stderr.flush()

While it's could work fine without it?

MohamedAyman-lirp
Автор

I loved all your tutoriials but this complete tutorial was unclear ... can u be more clear . especially with examples and please do take care about having window CLEARLY .... its abit messy

TejaKaipa
Автор

Yo amazing videos, learning alot from them but maybe for your next series its maybe fun to go into cyber security so maybe doing like SSH clients or maybe even a python debugger, but keep it up! subscribed :D

jurriaanbuitenweg
Автор

2:14
In my code at first the stdout text first then when I use line feeding "\n" it came just like yours, why?

musasudad