Python syntax for type()

ساخت وبلاگ

Vote count: 0

When are you able to specify the function after the dataframe and when must you specify the function before?

For example,

file = example.txt
file.readline()

This will work fine. But,

file = example.txt
file.type()

This will not work. You have to use type(file).

I'm confused by this syntax and when to use each.

asked 28 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 307 تاريخ : دوشنبه 11 ارديبهشت 1396 ساعت: 6:24