Python之socket
2016-01-29 21:20
555 查看
1.关于JDK1.5中使用集合类型时产生编译警告.如:
Vector vec=new Vector();
警告信息是:
使用了未经检查或不安全的操作。
注意: 要了解详细信息,请使用 -Xlint:unchecked 重新编译。
以下方法可以解决
HashMap<String, Integer> hm = new HashMap<String, Integer>();
Vector<...> vec=new Vector<...>();
2.关于eclipse的调试
选择,菜单window->Open perspective->other->debug,把整体视图切换
到debug模式下,Ctrl+Shift+B在需要调试的地方加入一个断点,选择菜
单,Run->Debug as-> java application,F6是单步向下(Step Over),F5
是单步进入(Step into),在Console窗口中能看到运行的结果
3.获得用户路径System.getProperty("user.dir")
Vector vec=new Vector();
警告信息是:
使用了未经检查或不安全的操作。
注意: 要了解详细信息,请使用 -Xlint:unchecked 重新编译。
以下方法可以解决
HashMap<String, Integer> hm = new HashMap<String, Integer>();
Vector<...> vec=new Vector<...>();
2.关于eclipse的调试
选择,菜单window->Open perspective->other->debug,把整体视图切换
到debug模式下,Ctrl+Shift+B在需要调试的地方加入一个断点,选择菜
单,Run->Debug as-> java application,F6是单步向下(Step Over),F5
是单步进入(Step into),在Console窗口中能看到运行的结果
3.获得用户路径System.getProperty("user.dir")
相关文章推荐
- Python爬虫实战(5):模拟登录淘宝并获取所有订单
- Python爬虫实战(3):计算大学本学期绩点
- Python爬虫实战(2):百度贴吧帖子
- Python爬虫实战(1):爬取糗事百科段子
- Python爬虫入门(8):Beautiful Soup的用法
- Python爬虫入门(7):正则表达式
- Python pip easy_install源配置
- Python爬虫入门(6):Cookie的使用
- Python爬虫入门(5):URLError异常处理
- Python爬虫入门(4):Urllib库的高级用法
- Python爬虫入门(3):Urllib库的基本使用
- Python爬虫入门(2):爬虫基础了解
- Python爬虫入门(1):综述
- Python 8.3 ThreadLocal
- 用Python如何处理excel里面的数据
- Python subprocess模块总结
- 关于Python的super用法研究
- 用 Python 做数据处理必看:12 个使效率倍增的 Pandas 技巧(上)
- python 字符串的操作方法
- python中字典内置函数的用法解析